0 Replies Latest reply on Jun 15, 2017 7:45 AM by PavelAn

    Phonegap build <www.zip>/locales/android/values-fr/strings.xml --> <android_apk>/res/values-fr/strings.xml doesn't work

    PavelAn

      Hello,

       

      I need to localize my app name.

       

      I found manual:

      "

      Android

      To add custom files, create a directory called locales/android/ in the root of your PGB application zip / repo, and place your resource files there. The contents will be copied into the Android res/ directory, and any nested sub-directory structures will persist. Here's an example of how these files will be compiled into your APK:

      <www.zip>/locales/android/values-fr/strings.xml --> <android_apk>/res/values-fr/strings.xml 

      Existing directories will be merged, but at this time any individual files you include will overwrite their target if it exists.

      "

       

      I created <www.zip>locales/android/values-fr/strings.xml on my project.

      Add following content on strings.xml:

       

      <?xml version="1.0" encoding="utf-8"?>

      <resources>

          <string name="app_name">APP name</string>

          <string name="launcher_name">APP name</string>

          <string name="activity_name">APP name</string>

      </resources>

       

      But Phonegap build <www.zip>/locales/android/values-fr/strings.xml --> <android_apk>/res/values-fr/strings.xml doesn't work.

       

      I've also tried:

      strings.xml:

      <resources>

          <string name="app_name">APP name</string>

          <string name="launcher_name">APP name</string>

          <string name="activity_name">APP name</string>

      </resources>

       

      and tryed:

      strings.xml:

          <string name="app_name">APP name</string>

       

      But there is no values-fr folder in res folder of apk

       

      Please, help me.