Support for other languages in UMC

All questions/issues/feedback for the iOS version of Wesnoth belong here.

Moderator: Forum Moderators

Post Reply
Ptitboul
Posts: 73
Joined: May 8th, 2021, 3:45 pm

Support for other languages in UMC

Post by Ptitboul »

Another question on the differences between Wesnoth 1.14 for iOS and Wesnoth 1.14 desktop version.

My campaign (Bloodlust) has now a translation in French, which is used when Wesnoth language is selected to be French, on desktop Wesnoth.
But it is not the case with the iOS Wesnoth.

I have in _main.cfg the following configuration

Code: Select all

[textdomain]
    name="wesnoth-bloodlust"
    path="data/add-ons/Bloodlust/translations"
[/textdomain]
and I have in translations/fr/LC_MESSAGES both files wesnoth-bloodlust.po and wesnoth-bloodlust.mo.

What is missing to have the translation used by the iOS Wesnoth?
My campaign, Bloodlust, is is need of feedback!
User avatar
Atreides
Posts: 1039
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Re: Support for other languages in UMC

Post by Atreides »

I believe that the .po file goes in translations/wesnoth-bloodlust/ and needs to be called fr.po?
Ptitboul
Posts: 73
Joined: May 8th, 2021, 3:45 pm

Re: Support for other languages in UMC

Post by Ptitboul »

Indeed, it seems that you are right.
Looking again at https://wiki.wesnoth.org/WesnothTranslationsHowTo the .po and the .mo files don't go to the same place.
I did the same as some other UMC, which apparently were wrong.

And the difference between the iOS version and the desktop version would be that the iOS version does not use the .mo files.
My campaign, Bloodlust, is is need of feedback!
User avatar
Atreides
Posts: 1039
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Re: Support for other languages in UMC

Post by Atreides »

Ptitboul wrote: December 4th, 2021, 5:13 pm Indeed, it seems that you are right.
Looking again at https://wiki.wesnoth.org/WesnothTranslationsHowTo the .po and the .mo files don't go to the same place.
I did the same as some other UMC, which apparently were wrong.

And the difference between the iOS version and the desktop version would be that the iOS version does not use the .mo files.
I asked about the use of .mo and .po files and was told that for UMC we might as well use .po since the speed gain for .mo is very little. So I've dropped using .mo's : )
Ptitboul
Posts: 73
Joined: May 8th, 2021, 3:45 pm

Re: Support for other languages in UMC

Post by Ptitboul »

I am puzzled. Now I have the .po files in the right place, but still no translation for the iOS version.
I have looked at other campaigns, and for example "To Lands Unknown" has working translation in french on iOS, but only has the .mo files...
My campaign, Bloodlust, is is need of feedback!
User avatar
octalot
General Code Maintainer
Posts: 777
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Support for other languages in UMC

Post by octalot »

In the add-on's directory name, BloodLust, the second L is capitalised; you need to change the [textdomain]path= string to match.

(Tested on Linux, not iOS).
Ptitboul
Posts: 73
Joined: May 8th, 2021, 3:45 pm

Re: Support for other languages in UMC

Post by Ptitboul »

Thank you. That was the mistake I made.
I don't know why it worked on Android.
My campaign, Bloodlust, is is need of feedback!
Post Reply