Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

[Build] Current localization method overwrite PhoneGap default localization template #199

Open
amirudin opened this issue Sep 24, 2013 · 19 comments
Assignees

Comments

@amirudin
Copy link

@hardeep introduce the following localization method on Build:
Ref: http://community.phonegap.com/nitobi/topics/problem_with_binary_details_ios_localization_builded_with_phonegap_build#reply_6687343

- locales --- en ---- local.strings --- fr ---- local.strings

However, it seems to overwrite default localization available set by PhoneGap itself:
The following default template default template the become empty (blank).

https://github.com/phonegap/phonegap/tree/master/lib/ios/bin/templates/project/__TESTING__/Resources

@artlogic
Copy link

@ghost ghost assigned bobeast Sep 27, 2013
@ghost ghost assigned hardeep Oct 11, 2013
@hardeep
Copy link

hardeep commented Oct 11, 2013

Hey Amir,

This is the intention of the feature, it's to allow users to modify the localization settings when submitting to the apple app store.

By default the PhoneGap project has a set of locales that are auto generated by having specific string files in their project, this feature allows a user to over ride the locales.

Hardeep Shoker

@artlogic
Copy link

Hardeep,

I've copied and pasted a summary of the problem from the support ticket:

Amir - here are two repos, one that uses your "official hack":

https://github.com/artlogic/CaptureAudio
https://github.com/artlogic/CaptureAudioGerman

  1. Build both of these for iOS with PhoneGap Build
  2. Turn on voice over in the accessibility settings.
  3. Switch the phone's language to German.
  4. Start CaptureAudio, click on "Capture Audio".
  5. Tap the record button (to get the accessibility text) - the voice over for the record button is in German, as it should be.
  6. Start CaptureAudioGerman, which uses the "official hack", click on "Capture Audio".
  7. Tap the record button (to get the accessibility text) - the voice over for the record button is in English. This is obviously incorrect.

Ideally, when I specify the language for my app using the "official hack", I would expect that it wouldn't disrupt strings already localized.

This is the core of the problem - if I choose for my app to be localized only in German, I would expect the strings already localized by phonegap build to be carried over.

@shawnmckay24
Copy link

Thank you for submitting an issue. The PhoneGap Build team has triaged your request and labeled it:

  1.   bug
    
  2.   medium priority
    

We've added your request to the team's backlog. Due to high volumes, there may be a delay in addressing your request. Rest assured, we haven't lost track of your request. Your feedback is very valuable to us, so please keep it coming.

If you have any questions, please ask us over on our support community. We love to help!

Cheers,

The PhoneGap Build team

@networksolution
Copy link

Hi. It is not possible to have the photoshooting UI (Camera plugin) in iPhone in Italian like the rest of the phone and the app?

@wildabeast
Copy link
Collaborator

@networksolution yes it is possible, i've outlined how here

@networksolution
Copy link

Sorry but at the link you provided, the forum stripped away the tags from your reply...
Where to insert the string "it" in config.xml? It is not specified.

Also, here they told me it is not possible yet. http://community.phonegap.com/nitobi/topics/native-ui-elements-are-in-english-on-an-italian-phone

@wildabeast
Copy link
Collaborator

Thanks for pointing that out -- here's how it should read:

<gap:config-file platform="ios" parent="CFBundleLocalizations" mode="replace"> 
    <array>
      <string>it</string>
      <string>fr</string>
    </array>
</gap:config-file>

Throw that in your PGB config.xml and when you change your iPhone to italian or french, the camera plugin should render in that language.

@artlogic
Copy link

@wildabeast Forgive me because it's been nearly 18 months, but does this fix solve the root issue here, or is that still a problem?

@wildabeast
Copy link
Collaborator

@networksolution's question was actually a different issue.

@artlogic I can look into the main issue here, if it would still be of any value to you..

@artlogic
Copy link

@wildabeast If you have a few spare moments it would be nice to get it fixed, but frankly, it was @networksolution's question that even got me thinking about it again. I haven't had a user complaining about it for awhile now.

@wildabeast wildabeast self-assigned this Mar 13, 2015
@wildabeast
Copy link
Collaborator

cool, i'll try to have a look.

@artlogic
Copy link

Much appreciated! 👍

@bmoshergit
Copy link

Any chance we can get similar support for Android for the Google Play store? Right now there's no way for PhoneGap Build apps to tell Google Play that they support more than one language.

Here's a related ticket: #401

@networksolution
Copy link

This should not be an issue for Android. Only the Apple Store displays languages. Google Play won't display any language list when downloading an app, but this is native behaviour, and it is correct

@bmoshergit
Copy link

@networksolution I'm not sure I know what you mean. When you list your app in Google Play, Google auto-detects what languages you support in the app, by looking for the localized files. Unfortunately Google thinks my app built with PhoneGap Build only supports English even though it actually support 4 other languages. Google keeps sending me "tips" saying that they see I've provided descriptions and images in other languages my Google Play listing and that I can increase my downloads by translating the app to those other languages too.

@azabala
Copy link

azabala commented May 25, 2015

@networksolution , @bmoshergit is right. It seems Google Play search in /res folder for at least a value* folder for each supported language. For example, if your default language is english, it looks for a /res/value folder. If you add a spanish language, it looks for a /res/values-es folder

@regnete
Copy link

regnete commented Aug 5, 2015

+1 for an Android solution

@Reon90
Copy link

Reon90 commented Nov 5, 2015

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests