translate=? (solved)
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
translate=? (solved)
Hi,
What needs to go into the .pbl file to set an add-on as translatable? I've tried
Thanks.
EDIT: Problem solved with some modifications to wesnoth_addon_manager
What needs to go into the .pbl file to set an add-on as translatable? I've tried
- translate="true"
translate=true
translate="yes"
translate=yes
Thanks.
EDIT: Problem solved with some modifications to wesnoth_addon_manager
Last edited by doofus-01 on December 7th, 2009, 4:41 pm, edited 1 time in total.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: translate=?
translate="true"doofus-01 wrote:Hi,
What needs to go into the .pbl file to set an add-on as translatable?
where "true" can also be "on", "yes" or "1" not entirely sure whether the double quotes are needed.
The upload code is the same as Wesnoth 1.6, however the upload is done manually so it can
take some time before the addon is on Wescamp.
Did you use the same .pbl for 1.8 as 1.6 for, for example bad moon rising?
Re: translate=?
Thanks for the reply. I used the same .pbl file for BMR in 1.6 (where it was set as translatable) and 1.7.5-8 (where it has never been translatable). I did have to switch to using wesnoth_addon_manager for 1.7, so I changed the .pbl file from
to I don't know if that has anything to do with anything.
This: Gives me this:
The "false" entries make me think it's not set correctly. I will post my .pbl (sans passphrase) tomorrow, I don't have it with me now.
EDIT: This is the _server.pbl of the one I uploaded several times:
Thanks.
Code: Select all
...campaigns/my_campaign.pbl
Code: Select all
...add-ons/my_campaign/_server.pbl
This:
Code: Select all
python wesnoth_addon_manager --port=15001 -l
Spoiler:
EDIT: This is the _server.pbl of the one I uploaded several times:
Code: Select all
author="doofus-01"
description="This era contains Primeval, Khthon, Ukian factions as well as a few smaller ones. Not well balanced. Needed for BMR & Trinity campaigns. (Revision 0.9.0.a: South-Seas is now a real faction and has been added to MP)"
icon="scenery/icepack-1.png"
passphrase="lalalala"
title="Archaic Era"
translate="true"
type="era"
version="0.9.0.a"
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
Re: translate=?
I saw this thread referenced in another one in this forum, and am now not sure if I made it sound like I was documenting my steps in fixing a .pbl file in the post above. I was not, nothing has changed. If the "translatable" = false entry of the add-on list doesn't mean what I think it means, then maybe there isn't a problem. But I would have thought "translatable" meant that it was set to be translatable, even if it isn't yet translated. And has no effect that I can see.
I glanced at the wesnoth_addon_manager, but am not proficient enough with python or wesnoth's code to really know where "false" is coming from.
Code: Select all
translate=true (or "true" or "yes")
I glanced at the wesnoth_addon_manager, but am not proficient enough with python or wesnoth's code to really know where "false" is coming from.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: translate=?
I did some testing and it seems the translate field isn't set.
Can you check whether you have multiple .pbl files in your addons?
If all that fails could you try to upload a new test addon with a translate field
to test whether that works?
Can you check whether you have multiple .pbl files in your addons?
If all that fails could you try to upload a new test addon with a translate field
to test whether that works?
Re: translate=?
Hi,
I just uploaded a translate=true add-on, when will I see it at: http://www.wesnoth.org/gettext/index.ph ... age=alloff ?
/tsr
I just uploaded a translate=true add-on, when will I see it at: http://www.wesnoth.org/gettext/index.ph ... age=alloff ?
/tsr
Re: translate=?
Oh, go ahead and rub it in...tsr wrote:I just uploaded a translate=true add-on,
I only have one _server.pbl per add-on. I've tried uploading a dummy add-on with some variations in translate=true/1/yes or translatable=true, but it doesn't ever get set. Here is the dummy add-on. EDIT: I've removed this from the server.SkeletonCrew wrote:Can you check whether you have multiple .pbl files in your addons?
If all that fails could you try to upload a new test addon with a translate field
to test whether that works?
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: translate=?
@tsr the Wescamp updating has just ran so it should be up soon...
if not you ran into the same problem as doofus-01
@doofus-01 I haven't found time to look further into the problem
but I see no obvious problem in your test addon. I hope to test
some more this weekend.
if not you ran into the same problem as doofus-01
@doofus-01 I haven't found time to look further into the problem
but I see no obvious problem in your test addon. I hope to test
some more this weekend.
Re: translate=?
Ok, well so it seems. But on the other hand I'm not sure I use this text-domain stuff right.SkeletonCrew wrote:@tsr the Wescamp updating has just ran so it should be up soon...
if not you ran into the same problem as doofus-01
And doodus-01, I wasn't trying to show but actually to show that others have the same (?) problem too
/tsr
Re: translate=?
Great. Thanks.SkeletonCrew wrote:I hope to test some more this weekend.
Cheers. I see your WCE has translate set to "yes", so we don't have the exact same problem. But maybe it's related.tsr wrote:I wasn't trying to show but actually to show that others have the same (?) problem too
EDIT: I just tested this with 1.7.9. Unpacked the tarball into a USB-drive that had the dummy add-on, ran the python script from there. Uploaded fine, except the translate field is still false. So, no change.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: translate=?
I just uploaded this addon and it has the translate flag set...doofus-01 wrote:I only have one _server.pbl per add-on. I've tried uploading a dummy add-on with some variations in translate=true/1/yes or translatable=true, but it doesn't ever get set. Here is the dummy add-on.
I tested it on both a local server and the official server and both have translate = true
So I'm really puzzled with what goes wrong... and I guess I'm not the only one...
Re: translate=?
Not exactly music to my ears, but at least it's working for everyone else. The only thing I can think to ask, and I cannot test this myself very easily, is this:
Does it make a difference if one uses the wesnoth_addon_manager versus the in-game button?
I have to use the python script data/tools/wesnoth_addon_manager. In that script, the only mention of "translate" in it is this and I see that last line has a "false" instead of "?". I am reluctant to go messing with things I don't know how to test locally, but I guess I'll try changing that last line, and see if that does anything. I don't have the files right now, so I won't try that until tomorrow.
EDIT: ^ This did nothing useful, of course.
Does it make a difference if one uses the wesnoth_addon_manager versus the in-game button?
I have to use the python script data/tools/wesnoth_addon_manager. In that script, the only mention of "translate" in it is this
Code: Select all
for campaign in campaigns.get_all("campaign"):
column = [
campaign.get_text_val("type", "?"),
campaign.get_text_val("name", "?"),
campaign.get_text_val("title", "?"),
campaign.get_text_val("author", "?"),
campaign.get_text_val("version", "?"),
campaign.get_text_val("uploads", "?"),
campaign.get_text_val("downloads", "?"),
campaign.get_text_val("size", "?"),
time.ctime(int(campaign.get_text_val("timestamp", "0"))),
campaign.get_text_val("translate", "false")]
EDIT: ^ This did nothing useful, of course.
Last edited by doofus-01 on December 7th, 2009, 3:46 pm, edited 1 time in total.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
Re: translate=?
this is what i use and i haven't had a problem with it yet.
Code: Select all
translate=yes
coded Rebellion During the Dark Age
Currently working on:
Era of the Future
Currently working on:
Era of the Future
Re: translate=?
Which campaigns do you have problems with? A few are on the server but contain invalid characters or other errors. I posted about them a long time ago, nothing happened.
WesCamp-i18n - Translations for User Campaigns:
http://www.wesnoth.org/wiki/WesCamp
Translators for all languages required: contact me. No geek skills required!
http://www.wesnoth.org/wiki/WesCamp
Translators for all languages required: contact me. No geek skills required!
Re: translate=?
Anything I try to upload with wesnoth_addon_manager. Including the "The_PBL_Test" posted earlier in this thread, which someone (SkeletonCrew?) had uploaded and it set as translatable. I'd removed it and re-uploaded, and it's no longer translatable. I think the problem is with wesnoth_addon_manager. Or I'm not using it correctly, but --help and --verbose don't shed any light on this.torangan wrote:Which campaigns do you have problems with?
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects