---
# System prepended metadata

title: Android L10n Refining

---

# Android L10n Refining

## iOS to Android Directory

|                              |                  iOS                   |               Android                |
| ---------------------------- |:--------------------------------------:|:------------------------------------:|
| Path                         | hikingbook-ios/Hikingbook/Localizable/ | hikingbook-android/app/src/main/res/ |
| English Directory            |               Base.lproj/Localizable.strings               |          values/strings.xml          |
| Simplified Chinese Direcory  |             zh-Hans.lproj/Localizable.strings              |      values-zh-rCN/strings.xml       |
| Traditional Chinese Direcory |             zh-Hant.lproj/Localizable.strings              |      values-zh-rTW/strings.xml       |

## String resources
1. **key-value**
    * **En**
![](https://i.imgur.com/igVd1pH.png)
    * **CN**
![](https://i.imgur.com/GVznFXM.png)
    * **TW**
![](https://i.imgur.com/mLg32cx.png)

---

2. **Don't need translate**
![](https://i.imgur.com/KutYvbM.png)

---

3. **Special symbols**
![](https://i.imgur.com/9vJCypl.png)

## Flow of l10n
1. The Untranslated string will be placed at the bottom of the **value/strings.xml**、**values-zh-rCN/strings.xml**、**values-zh-rTW/strings.xml** and use the comment to distinguish.
```xml=
<resource>
    ...
    
    <!-- The untranslated string will be placed at the bottom of the file -->
    <!-- Untranslated -->
    <string name="xxx">xxx</string>
    <string name="yyy">yyy</string>
    <string name="zzz">zzz</string>
</resource>
```

2. The key and value will be the same, but will skip if it encounters special symbols
```xml=
<!-- Without special symbols -->
<string name="coming_soon">Coming soon</string>

<!-- With special symbols -->
<string name="finish_and_add_waypoint">Finish &amp; Add Waypoint</string>
<string name="click_plus_button_to_add_a_new_hike">Click &quot;+&quot; to add a new hike</string>
<string name="did_you_like_the_hikingbook">Did you like the Hikingbook?</string>
```

3. Because didn't have android screen on figma, so I will highlight the string on the screenshot. 
![](https://i.imgur.com/npfkucq.png)


## Reference
* https://developer.android.com/guide/topics/resources/string-resource#StylingWithHTML