I figure out the problem...  I was editing the openxpki.po.local that I
created within the 'core/i18n/fr_FR' directory.

Instead, I did my corrections directly in core/i18n/fr_FR/openxpki.po

After having compiled/installed this language file, restarted Apache and
OpenXPKI, I'm seeing my translations in the webUI!!!

Now, I'm chugging along translating EN to FR... It's slow going, but
I'll should get it done soon.

On 2018-12-09 8:50 a.m., Luc Lalonde wrote:
> Hello Oliver,
>
> I didn’t mention that I did change the Makefile to add fr_FR to the
> list of languages in the Makefile.
>
> Also, after the scan, I did a ‘make’ then ‘make install’.   This
> copied an ‘openxpki.mo’ in the proper directory:  
>
> /usr/share/locale/fr_FR/LC_MESSAGES/
>
> After having done this, there’s still no language change in the web UI.
>
> The OpenXPKI documentation doesn’t give any details on the procedure
> for changing the language…
>
> Cheers.
>
> Luc Lalonde, analyste
> -----------------------------
> Département de génie informatique et génie logiciel:
> École polytechnique de MTL
> (514) 340-4711 x5049
> [email protected] <mailto:[email protected]>
> -----------------------------
>
>> On Dec 8, 2018, at 4:04 AM, Oliver Welter <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> Hi Luc,
>>
>> I dont know if you just missed to mention that or if you are not
>> familiar with gettext but you need to change the vaules in the PO file
>> and must generate the mo file using the gettext tools. The "make scan"
>> command grabs the list of languages from the Makefile so as long as you
>> did not add fr_FR here I guess your compiled language file was not
>> updated.
>>
>> Otherwise changing the locale in the webui config and restarting apache
>> should be sufficient.
>>
>> Oliver
>>
>> Am 07.12.18 um 21:46 schrieb Luc Lalonde:
>>> Hello Folks,
>>>
>>> I've begun to create a french (fr_FR) translation for OpenXPKI.
>>>
>>> To see if I'm on the right track, I've changed some of the menu items to
>>> french and proceeded to install the language files:
>>>
>>>    1. In the folder "openxpki/core/i18n" start make scan
>>>    2. Copy openxpki.mo from the directory "openxpki/core/i18n/fr_FR"
>>> in the
>>>       directory "/usr/share/locale/de/LC_MESSAGES/" and in the directory
>>>       "/usr/share/locale/fr_FR/LC_MESSAGES/"
>>>    3. Change the config "/etc/openxpki/config.d/system/server.yaml"
>>>       # settings for i18n
>>>       i18n:
>>>       locale_directory: /usr/share/locale
>>>       ## default_language: C
>>>       default_language: fr_FR
>>>    4. Change the config "/etc/openxpki/webui/default.conf"
>>>       locale_directory: /usr/share/locale
>>>       ## default_language: en_US
>>>       default_language: fr_FR
>>>
>>> There seems to be something missing... upon restarting Apache and
>>> OpenXPKI, the menus are still in english.
>>>
>>> What am I doing wrong?
>>>
>>> Thanks!
>>>
>>>
>
>
>
> _______________________________________________
> OpenXPKI-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openxpki-users

-- 
Luc Lalonde, analyste
-----------------------------
Département de génie informatique:
École polytechnique de MTL
(514) 340-4711 x5049
[email protected]
-----------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to