Code Monkey home page Code Monkey logo

Comments (8)

CooperRS avatar CooperRS commented on July 21, 2024

Added Chinese localization

from rmdateselectionviewcontroller.

CooperRS avatar CooperRS commented on July 21, 2024

Added Spanish localization

from rmdateselectionviewcontroller.

CooperRS avatar CooperRS commented on July 21, 2024

Added Dutch and Russian localization

from rmdateselectionviewcontroller.

taiyangc avatar taiyangc commented on July 21, 2024

Hi, is there any reason you would want to localize an entire .xib file instead of a Localizable.strings?
It seems easier to localize my own app instead of including one xib every language. Thanks.

from rmdateselectionviewcontroller.

CooperRS avatar CooperRS commented on July 21, 2024

Hi,

Your are right. At first it seemed to be the easiest way to localize the control using XIBs. But this approach has problems (like in #14).

I'm currently thinking about how to deploy the localizations because I think it still is a good idea to deploy localizations for this control with the control itself. Any ideas?

from rmdateselectionviewcontroller.

taiyangc avatar taiyangc commented on July 21, 2024

Then I suggest Localizable.strings for each language and use

#define NSLS(UNTRANSLATED, ...) NSLocalizedString(([NSString stringWithFormat:@#UNTRANSLATED, ##__VA_ARGS__]), nil)

And set button title to NSLS(SomeButtonText) during initialization where SomeButtonText is a key in Localizable.strings.

from rmdateselectionviewcontroller.

CooperRS avatar CooperRS commented on July 21, 2024

I think this is a better way to solve the localization problems. In particular, I also think the GUI should be build up using code as XIBs are not imported correctly in CocoaPod projects (or my spec is wrong :D)...

from rmdateselectionviewcontroller.

taiyangc avatar taiyangc commented on July 21, 2024

Yeah that sounds better for customization.

from rmdateselectionviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.