October: Back-end Preferences - Locale

Created on 6 Jul 2016  路  8Comments  路  Source: octobercms/october

Expected behavior

Well, in my opinion, the locale should have "Portuguese ( Portugal )"

Actual behavior

It has "Portuguese ( Brazil )

October build

I am using latest october build, 346

Archived Conceptual Enhancement

Most helpful comment

PR please

All 8 comments

+1

+1

oh @jareis deixa-te de coisas 茅 logo com os dois! qual 茅 a tua, estas armado em esquisito! :dancer:

PR please

@daftspunk how much code exactly are we talking about here?

Portuguese ( Brazil ) and Portuguese ( Portugal ), identical language?

If there is no difference, simply call it Portuguese and we rename pt-br to pt.

Ok, so there looks like a difference. A suggestion would be to create pt-pt and include the strings from pt-br, then it can allow overrides for any differences.

Eg, this file: https://github.com/octobercms/october/blob/master/modules/system/lang/pt-br/lang.php

Pretend it is pt-pt/lang.php:

<?php

$lang = include __DIR__ . '/../pt-br/lang.php';
$lang['app']['name'] = 'Wakka wakka CMS';
return $lang;

See that we can still override the app.name key to something else, but use the remaining keys as a basis and prevent duplication for language that is the same between pt-br and pt-pt.

Closing as it has been over a month since any activity on this occurred.

Was this page helpful?
0 / 5 - 0 ratings