开发者

iPhone : Is it possible to split Localizable.strings in many files

I'd like to know if it is possible to "distribute" the translation resources (my "Localizable.strings" files) in many subfiles.

Indeed, in my application, I store text articles in many folders, and I'd like to put the translations of each articles just aside the original article, that means in its own folder.

To summarize, I'd like to use this kind of hierarchy :

Resources/

- Articles/

-- First_Article/

--- Content.article

--- Localizable.strings/

---- en

---- fr

-- Second_Article/

--- Content.article

--- Localizable.strings/

---- en

---- fr

Would anyo开发者_Go百科ne have an idea about the feasibility and how to achieve to do this ? :)

Thanks by advance


You can do this by using the following:

 NSLocalizedStringFromTable(self,@"second_article",@"");

You should however not use the name Localizable.strings twice. Instead do the following:

- second_article.strings/
-- en
-- fr
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜