[textdomain] inside #ifdef MULTIPLAYER?
Moderator: Forum Moderators
[textdomain] inside #ifdef MULTIPLAYER?
I am trying to prepare a multi-player add-on for translation. Right now, my [textdomain] tag is inside the #ifdef MULTIPLAYER zone. The entire _main.cfg is:
I believe that [textdomain] belongs inside the #ifdef MULTIPLAYER zone, because all translated strings are in this zone. However, I am not sure, and I cannot test this, because no translations yet exist for this add-on. Is this [textdomain] tag in the correct place?
(If it becomes necessary, one can read the entire add-on in the attachment, or online at Bitbucket.)
Spoiler:
(If it becomes necessary, one can read the entire add-on in the attachment, or online at Bitbucket.)
- Attachments
-
- anlc-6878b6.tar.gz
- A New Land Classic 0.14.3+hg (6878b6)
- (197.53 KiB) Downloaded 422 times
--Kernigh http://www.wesnoth.org/wiki/User:Kernigh
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: [textdomain] inside #ifdef MULTIPLAYER?
Looking through my multiplayer addons I see that I have it outside in all of them. Perhaps you would get a "no textdomain found for addon xy" error. You could try minimizing the "scope" of the textdomain declaration yes.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign