仅使用PhoneGap Build的西班牙语应用程序

时间:2014-08-13 11:44:19

标签: cordova

使用PhoneGap Build构建我的应用程序时遇到问题。我使用的是3.3.0版。

我的应用程序仅使用西班牙语。但是当我创建我的应用程序并将其安装在我的iPhone上时,一些消息(如复制,粘贴,选择图像......)保留在英语中。 我需要这些消息留在西班牙语。 有图像可以看到我的错误。:

d2r1vs3d9006ap.cloudfront.net/s3_images/1086847/error1_inline.png

d2r1vs3d9006ap.cloudfront.net/s3_images/1086848/error2_inline.png

d2r1vs3d9006ap.cloudfront.net/s3_images/1086849/error3_inline.png

在HTML代码中,我把:

<!DOCTYPE html>
 <html lang="es">
 <head>
 <meta charset="utf-8">
 <meta content="width=device-width, minimum-scale=1.0, maximum-scale=1.0;" name="viewport"> 
 <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0;" /> ...

这是我的config.xml:

<?xml version="1.0" encoding="UTF-8" ?>
 <widget xmlns = "http://www.w3.org/ns/widgets"
 xmlns:gap = "http://phonegap.com/ns/1.0"
 id = "es.dario.app"
 versionCode="10"
 version = "1.0">
 <name>Titulo de la App</name>
 <description>Descipción de la App</description>
 <author href="Dario">Dario</author>
 <content src='login.html'/>
 <access origin="*"/>

 <!-- PREFERENCE -->
 <preference name="phonegap-version" value="3.3.0" />
 <preference name="orientation" value="portrait" />
 <preference name="fullscreen" value="true" />
 <preference name="stay-in-webview" value="false" />
 <preference name="target-device" value="universal" />
 <preference name="prerendered-icon" value="true" />
 <preference name="ios-statusbarstyle" value="default" />
 <preference name="detect-data-types" value="true" />
 <preference name="exit-on-suspend" value="false" />
 <preference name="show-splash-screen-spinner" value="true" /> 
 <preference name="auto-hide-splash-screen" value="true" />
 <preference name="EnableViewportScale" value="true" />
 <preference name="TopActivityIndicator" value="white" />
 <preference name="KeyboardDisplayRequiresUserAction" value="true" />
 <preference name="android-minSdkVersion" value="7" />
 <preference name="android-installLocation" value="internalOnly" />
 <preference name="SplashScreenDelay" value="5000" />
 <preference name="BackgroundColor" value="0xffffff"/>
 <preference name="disable-cursor" value="true" />

 <!-- PLATFORM -->
 <gap:platform name="ios" />
 <gap:platform name="android" />
 <gap:platform name="winphone" />

 <!-- PLUGIN -->
 <gap:plugin name="org.apache.cordova.inappbrowser" />
 <gap:plugin name="nl.x-services.plugins.socialsharing" />

 <!-- FEATURE -->
 <feature name="http://api.phonegap.com/1.0/camera"/>

 <!-- ICONOS -->
 <icon src="icons/ios/icon57.png" gap:platform="ios" width="57" height="57" />
 <icon src="icons/ios/icon72.png" gap:platform="ios" width="72" height="72" />
 <icon src="icons/ios/icon114.png" gap:platform="ios" width="114" height="114" />
 <icon src="icons/ios/icon144.png" gap:platform="ios" width="144" height="144" />
 <icon src="icons/ios/icon76.png" gap:platform="ios" width="76" height="76" />
 <icon src="icons/ios/icon120.png" gap:platform="ios" width="120" height="120" />
 <icon src="icons/ios/icon152.png" gap:platform="ios" width="152" height="152" />
 <icon src="icons/android/icon36.png" gap:platform="android" gap:density="ldpi" />
 <icon src="icons/android/icon48.png" gap:platform="android" gap:density="mdpi" />
 <icon src="icons/android/icon72.png" gap:platform="android" gap:density="hdpi" />
 <icon src="icons/android/icon-96.png" gap:platform="android" gap:density="xhdpi" />
 <icon src="icons/android/icon144.png" gap:platform="android" gap:density="xxhdpi" />
 <icon src="icons/winphone/icon62.png" gap:platform="winphone" />
 <icon src="icons/winphone/icon173.png" gap:platform="winphone" gap:role="background" />
 <icon src="icon64.png" />

 <!-- SPLASH -->
 <gap:splash src="splash/ios/splash320x480.png" gap:platform="ios" width="320" height="480" />
 <gap:splash src="splash/ios/splash480x320.png" gap:platform="ios" width="480" height="320" />
 <gap:splash src="splash/ios/splash640x960.png" gap:platform="ios" width="640" height="960" />
 <gap:splash src="splash/ios/splash960x640.png" gap:platform="ios" width="960" height="640" />
 <gap:splash src="splash/ios/splash640x1136.png" gap:platform="ios" width="640" height="1136" />
 <gap:splash src="splash/ios/splash1136x640.png" gap:platform="ios" width="1136" height="640" />
 <gap:splash src="splash/ios/splash768x1024.png" gap:platform="ios" width="768" height="1024 " />
 <gap:splash src="splash/ios/splash1024x768.png" gap:platform="ios" width="1024" height="768" />
 <gap:splash src="splash/ios/splash1536.png" gap:platform="ios" width="1536" height="2048" />
 <gap:splash src="splash/ios/splash2048.png" gap:platform="ios" width="2048" height="1536" />
 <gap:splash src="splash/android/splash240x400.png" gap:platform="android" gap:density="ldpi" />
 <gap:splash src="splash/android/splash320x480.png" gap:platform="android" gap:density="mdpi" />
 <gap:splash src="splash/android/splash480x800.png" gap:platform="android" gap:density="hdpi" />
 <gap:splash src="splash/android/splash720x960.png" gap:platform="android" gap:density="xhdpi" />
 <gap:splash src="splash/winphone/splash480x800.png" gap:platform="winphone" />
 <gap:splash src="splash.png" />

 </widget>

要安装并运行我的应用程序,我在编译后从Phonegap Build下载了.ipa。 连接到MAC后,当我使用iTunes打开它时,双击.ipa应用程序(在iTunes中)并安装它。

可以帮帮我吗? 感谢

1 个答案:

答案 0 :(得分:0)

我有同样的问题,在互联网上无处不在,但无法找到答案......经过多次思考后,我终于明白了!

我刚把它添加到我的config.xml文件中:

<gap:config-file platform="ios" parent="CFBundleDevelopmentRegion" overwrite="true">
    <string>French</string>
</gap:config-file>

在您的情况下,您只需要替换&#34;法语&#34;用&#34;西班牙语&#34; (或任何其他语言)它应该工作! (但我想现在对你来说可能有点晚了......)

(我使用的是Phonegap 3.7.0)