p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #e44347 }

Only Chinese is available

1,

#define VivienResourceBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"Vivien" ofType:@"bundle"]]

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #8b84cf }
span.s3 { color: #e44347 }

#define currentLanguageBundle [NSBundle bundleWithPath:[VivienResourceBundle pathForResource:[[NSLocale preferredLanguages] objectAtIndex:0] ofType:@"lproj"]]

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #e44347 }

#define An1LocalizedString(key, comment)  NSLocalizedStringFromTableInBundle(key,@"Root",currentLanguageBundle,@"")

2,

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #e44347 }

#define VivienResourceBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"Vivien" ofType:@"bundle"]]

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #e44347 }

#define currentLanguageBundle  [NSBundle bundleWithPath:[VivienResourceBundle pathForResource:@"en" ofType:@"lproj"]]

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
span.s1 { }
span.s2 { color: #e44347 }

#define An2LocalizedString(key, comment)   [[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"Vivien"  ofType:@"bundle"]] localizedStringForKey:(key) value:comment table:@"Root"]

3,

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d28f5a }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #4dbf56 }
span.s1 { }
span.s2 { color: #e44347 }

#define VivienResourceBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"Vivien" ofType:@"bundle"]]

#define VivienResourceBundle_Language(lang)  [NSBundle bundleWithPath:[VivienResourceBundle pathForResource:(lang) ofType:@"lproj"]]

#define VivienResourceBundle_DefaultLanguage  [NSBundle bundleWithPath:[VivienResourceBundle pathForResource:@"en" ofType:@"lproj"]]

//#define AtmobotLocalizedString(key) [VivienResourceBundle_Language([InternationalControl userLanguage]) localizedStringForKey:(key) value:nil table:@"Root"]

#define An3LocalizedString(key) [VivienResourceBundle_DefaultLanguage localizedStringForKey:(key) value:nil table:@"Root"]

Set up bundle More about default language in package

  1. Set up select Default values in components

    Membership card type   <select id="name2" style="width:140px"> <option value="Ak& ...

  2. turn :iOS- Generate Bundle package - introduce bundle- Use bundle

    When we use third-party frameworks , I often see XXX.bundle The file of . We found the file , Show package content , You can see a lot of resource files : picture . Configuration text .XIB file ……   What is? Bundle file ? Simple understanding , It's the resource package . ...

  3. 【 turn 】iOS- Generate Bundle package - introduce bundle- Use bundle

    When we use third-party frameworks , I often see XXX.bundle The file of . We found the file , Show package content , You can see a lot of resource files : picture . Configuration text .XIB file ……   What is? Bundle file ? Simple understanding , It's the resource package . ...

  4. Customize bundle Package creation

    When we use third-party frameworks , I often see XXX.bundle The file of . We found the file , Show package content , You can see a lot of resource files : picture . Configuration text .XIB file ……   What is? Bundle file ? Simple understanding , It's the resource package . ...

  5. CentOS Modify the system default language and code

    Sometimes it's installed CentOS Inadvertently set the default language to Chinese , And part SSH The software does not support Chinese encoding , So in the remote management, there will be some messy code phenomenon .   How to modify CentOS The default language of ? Please use first. root Permission account login One . ...

  6. iOS Generate Bundle Package and use

    What is? Bundle file ? Simple understanding , It's the resource package . We'll take a lot of pictures .XIB. Text files are organized together , Pack it into a Bundle file . It is convenient to refer to the resources in the package in other projects . Bundle The characteristics of the document ? Bundle It's quiet ...

  7. oralce default language

    The default language setting determines how the database supports locale related information , for example : The names of days and months and their abbreviations A.M..P.M..A.D. and B.C. The sign of the equivalent representation of Appoint ORDER BY SQL Clause, character data ...

  8. vue-cli The routing is independent JS After the document , How to get vuex Property or set internationalization i18n The current language used by

    internationalization vue-i18n Use : import Vue from 'vue'; import VueI18n from 'vue-i18n'; // Introducing language packs import zh from '@/co ...

  9. R Language : utilize caret In bag dummyVars Function for dummy variable processing

    dummyVars function :dummyVars creates a full set of dummy variables (i.e. less than full rank parameterizati ...

Random recommendation

  1. SQL Server- data type ( 7、 ... and )

    Preface In the previous articles, we explained the knowledge about index , In this section, we'll continue with the following , Short content , In depth understanding ,Always to review the basics. data type SQL Server Two characters are supported ...

  2. Domino----The Address Book does not contain a cross certificate capable of validating the public key.

    The Address Book does not contain a cross certificate capable of validating the public key. The address book does not contain cross ...

  3. Swift Develop tips -- Identify the QR code in the selected photo

    Identify the QR code in the selected photo Click the album button , Open user album @IBAction func photoBtnClick(sender: AnyObject) { // Open album // 1. Determine whether the album can be opened ...

  4. java GZIP Compress and decompress

    Recently I came across a button GZIP Decompress the specified input stream data , Under backup import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream ...

  5. vim Preliminary plug-in development

    [vim Preliminary plug-in development ] The following code will exist helloworld.vim, Put it in ~/.vim/plugin Under the table of contents , The plug-in takes effect .:w After saving the code , use :source After the execution of the command , You can also use Helloworld life ...

  6. 까페24 호스팅 php 에러메세지 출력

    [문제점] 최근 까페24호스팅에서 php작업시화면에 에러메세지가 나오지 않아 디버깅시에 매우 곤란함 [해결책] .htaccess 내용에 아래추가.=================== ...

  7. EBS Export key elastic domain

    select gl_flexfields_pkg.get_description_sql(gcc.chart_of_accounts_id, 1, gcc.segment1) || '-' || gl ...

  8. XCode: duplicate symbol

    XCode: duplicate symbol 2013-05-27 17:28:21|   classification : iOS| Font size   subscribe     Encountered the problem of duplicate definition of reference library , Need to be solved .   Project needs , At the same time quote ZBar and Q ...

  9. VMware Virtual machine is Ubuntu Add disks

    20G My disk is not enough , Just review the disk partition and logical volume . Shut down the virtual machine , open VMware, Right click the virtual machine and click settings , Click add below , You can add disks . Enter virtual machine , see : root@ubuntu:/# fdis ...

  10. activiti engine.schema.update DB_SCHEMA_UPDATE_FALSE

    engine.properties # engine propertiesengine.schema.update=trueengine.activate.jobexecutor=falseengin ...