Показать сообщение отдельно
Старый 01.06.2014, 00:22
tooth212 вне форума Посмотреть профиль Отправить личное сообщение для tooth212 Найти все сообщения от tooth212
  № 1  
Ответить с цитированием
tooth212

Регистрация: Dec 2012
Сообщений: 172
Question Приложение на нескольких языках. Работа с дескриптором приложения.

Добрый день, решил создать приложение для android на нескольких языках. При работе с дескриптором приложения возникли трудности: хотелось бы сделать разные названия для разных языков.
Вот такой генерируется дескриптор файла:
Код:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!-- 
	Usage:

	To localize the description, use the following format for the description element.
	<description>
	<text xml:lang="en">English App description goes here</text>
	<text xml:lang="fr">French App description goes here</text>
	<text xml:lang="ja">Japanese App description goes here</text>
	</description>

	To localize the name, use the following format for the name element.
	<name>
	<text xml:lang="en">English App name goes here</text>
	<text xml:lang="fr">French App name goes here</text>
	<text xml:lang="ja">Japanese App name goes here</text>
	</name>
-->
<application xmlns="http://ns.adobe.com/air/application/3.8">
  <id>testgame</id>
  <versionNumber>1.0.0</versionNumber>
  <versionLabel></versionLabel>
  <filename>test_game</filename>
  <description/>
  <name>test_game</name>
  <copyright/>
  <initialWindow>
    <content>test_game.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>false</fullScreen>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>cpu</renderMode>
    <autoOrients>false</autoOrients></initialWindow>
  <icon/>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
  <android>
    <manifestAdditions><![CDATA[<manifest>
</manifest>]]></manifestAdditions>
  </android>
  <supportedLanguages>en ru</supportedLanguages>
</application>
Я заменяю на:
Код:
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.8">
  <id>testgame</id>
  <versionNumber>1.0.0</versionNumber>
  <versionLabel></versionLabel>
  <filename>test_game</filename>
  <description/>
	<name>
	<text xml:lang="en">test_game_en</text>
	<text xml:lang="ru">test_game_ru</text>
	</name>
  <copyright/>
  <initialWindow>
    <content>test_game.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>false</fullScreen>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>cpu</renderMode>
    <autoOrients>false</autoOrients></initialWindow>
  <icon/>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
  <android>
    <manifestAdditions><![CDATA[<manifest>
</manifest>]]></manifestAdditions>
  </android>
  <supportedLanguages>en ru</supportedLanguages>
</application>
При повторном собирании apk файла во флеш, файл дескриптор становится первоначальным. Как можно решить проблему?