Hi All, 

Thank you Adam for your help. I tried specifying the extension to "htm" and 
it did work in collecting the text in the homepage (*index.htm*). To 
collect the rest of the text I had to copy the templates from inside arches 
library to the project and then run makemessages again. I will try to test 
the process a few times and then draft a guide for it for the 
documentation. 

Thank you again, 
Best, 
Mahmoud 
On Sunday, August 9, 2020 at 6:13:06 PM UTC+2 Mahmoud Abdelrazek wrote:

> Hi All, 
>
> I am trying to enable a language switcher for an arches implementation. I 
> think similar to here 
> <https://groups.google.com/g/archesproject/c/YTopbQdPDQg/m/LuK32MzvBwAJ> but 
> for version 5. 
>
> The process is I understand it is as follows: 
>
>    1. Include localization tags in the HTML files and surround the text 
>    with "trans" tags. #already done by arches
>    2. Include the "locale" location in the settings 
>    3. Produce the localization files ' .po and .mo ' using "makemessages" 
>    command
>    4. Include the translation in the localization ' .po ' and then 
>    compile it using "compilemessages" command 
>    5. Include a language switcher in the page's template similar to the 
>    example here 
>    
> <https://docs.djangoproject.com/en/dev/topics/i18n/translation/#the-set-language-redirect-view>
>    . 
>    6. Set the list of the available languages in the settings file 
>
> I could not produce the localization files. I have tried adding folders to 
> the locale list and tried resiting it to only one directory and then 
> running makemessages but it didn't create any files. I only got back 
> processing 
> locale ru when I tried the Russian language. I have tried both manage.py 
> and django-admin and got the same results. I tried all languages and also 
> nothing was created. 
>
> I feel like there might be something obvious I am missing here. Did anyone 
> come across this issue before? or tried and managed and translated v5 
> successfully? 
>
>
> I have added the switcher to the HTML template and added a list of 
> controlled languages in the settings file. The switcher shows in all the 
> windows and accepts changes (post request is sent successfully)  
>
> However, only the word "search" is translated. I am not sure if this is 
> the expected behaviour or not? How much of Arches is available in other 
> languages by default? Is there a list of supported languages available 
> somewhere?
>
> Thank you all very much for your help. 
> Best, 
> Mahmoud 
>
>
>
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/805b1bcd-632b-48d4-9fb3-6e2a0709c216n%40googlegroups.com.

Reply via email to