[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

locale nls msgid conventions



Hello,

I do not know if this is the right way or place or time to treat this thread.
Please correct me if necessary.

But i would propose to code msgid-strings without formatting characters.
This would make maintenance of  locale/po/ files a lot easier.
Changes could be done when doing maintance . Need not to be changed immediately.

for instance

$self->{_locale}->text('Error from Function:')
$self->{_locale}->text('Error from Function') . ':'

<th><?lsmb text('Ending GL Balance:') ?></th>
<th><?lsmb text('Ending GL Balance') ?>:</th>

$form->error($locale->text('Invalid Project Data:')
$form->error($locale->text('Invalid Project Data') . ':'

etc etc

regexp-expression to find such constructs:
grep -Er "text[ ]*\([a-zA-Z0-9 ']*[a-zA-Z0-9 ]*:'\)" ./|grep -v '\.svn'|less

Greetings,
Herman Vierendeels
Belgium