-
-
Notifications
You must be signed in to change notification settings - Fork 507
Change country names for personal project
Harsh B. Bhakta edited this page Jun 3, 2018
·
1 revision
- If it is typo error, please create a new issue with details so that we can update it as soon as possible that can help Android Dev Community.
- We understand our responsibility to provide most accurate phone codes and country names. But sometimes due to some reasons like unclear or changing political status, country names may vary from your expectation. If that is the case, we sincerely apologize for that. Being devoted to opensource work, we never want to hurt anyone's sentiments. If you feel like you want to change the country name kindly follow the steps:
- If it does not exist, create
raw
folder underres
folder of your app.src/main/res/raw
. - Download country name resource files from here.
- If your project does not use CCP's autoDetectLanguage feature it means you won't need all the files from that folder. Download files which represent language(s) of your concern.
- Copy this/these file(s) and paste in the folder created in step 1.
- Go to all these files and modify country names as per your wish.
- Run the project to verify changes.
Above changes will override CCP's resource file to use your modified files. So when you update CCP version that adds new countries in future you will not get updated list as your project will be using your local resource file at the run time. You will have to update it manually in your local files.
- How to Integrate into your project
- Full Number Support
- Use as a Country Selector
- Auto detect country
- Auto detect language
- Remember last selection
- Country Preference
- Custom Mater List
- Exclude Countries
- Example phonenumber as hint
- Multi Language Support
- Default Country
- Country Selection Listener
- Dialog events listener
- CCP Theme Customization
- CCP Dialog Theme Customization
- Custom TypeFace
- Read Selected Country
- XML Properties
- Update Guide to v2
- Guide to Add New Language Support
- Guide to add New Country
- Change contry names for local project
- Handle CCP ClickListener Manually
- Custom Dialog Title/Hint/Empty Result ACK
- Flag Emoji Support (BETA)
- Change Log