English 中文(简体)
部队特定地点,用于目标
原标题:Force a specific localization to be used for a target

I m developing an app that, among other things, will play a large audio file (30MB).

I want to submit the app to the App Store in several countries. The audio file is different per target country, the rest of the app remains the same (Although localized).

我为每个国家设定了目标,用双管书写器把正确的音频文件复制成根据目标汇编的手稿,并发挥了巨大作用。

我也把资源(工资和地方化)本地化,使之易于维持。

Let s say I built my target for Sweden, I want to include only the swedish localization to force the app to always show swedish language (Which matches the audio file).

www.un.org/spanish/ecosoc 实际问题:* 我如何把所有地方化排除在目标之外,或把目标推到仅仅使用特定地方,而不管电话环境如何?

最佳回答

根据你对Lvsti的答复(你在其中说,你之所以再次这样做,是用你的一些语文翻译工作尚未完成,但你想要发表什么),或许是删除所有有关地方化档案或与你所建环境相隔的照片的一种替代办法,你可以试图在你的XCode项目中将语言清单删除? 它不是每个目标,而是每个项目,但可能允许你排除你在你大楼里不想要的语言。 参见项目环境中的当地化(略微——你可以用来删除一种语言)。

“entergraph

问题回答

我认为,你也许能够这样做:

具体目标设置=>Info => 增加一个新行,称为 Localizations => 用你想要的语言补充这一阵列的一个新内容(我认为缺席是english)

I haven t tested it, just let me know if it worked.

如果我理解你的问题,你实际上不需要当地化的东西,或者至少不需要一个完全地方化的东西。 如果情况如此,我将使用一个编印阶段,负责根据目前的目标复制适当的非当地化但针对具体目标的资源。 比如,在你的项目根基中,你用各种语文的版本打上了录音带。

cp "$PROJECT_DIR/Audio/$TARGETNAME.mp3" "$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/audio.mp3"

例如,将复制/改称“Swedish.mp3”改为“audio.mp3”,直接从捆绑中获取。





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签