зеркало из https://github.com/nextcloud/talk-ios.git
Use UTF-8 in Localizable.strings file.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
b02bb745c2
Коммит
2a4a855cc2
Двоичные данные
NextcloudTalk/en.lproj/Localizable.strings
Двоичные данные
NextcloudTalk/en.lproj/Localizable.strings
Двоичный файл не отображается.
|
@ -1,21 +1,7 @@
|
|||
# Generate localization file
|
||||
# Generate localizable strings file
|
||||
|
||||
## Using genstrings tool
|
||||
## Use the bash script located in project's root folder
|
||||
|
||||
```
|
||||
$ cd NextcloudTalk
|
||||
$ genstrings -o en.lproj *.m *.swift ../ShareExtension/*.m ../NotificationServiceExtension/*.m ../ThirdParty/SlackTextViewController/Source/*.m ../ThirdParty/AppRTC/*.m
|
||||
```
|
||||
|
||||
## Showing .strings file diff
|
||||
|
||||
Add this to .gitattributes file in root folder:
|
||||
```
|
||||
*.strings diff=localizablestrings
|
||||
```
|
||||
|
||||
Add this to your ~/.gitconfig file:
|
||||
```
|
||||
[diff "localizablestrings"]
|
||||
textconv = "iconv -f utf-16 -t utf-8"
|
||||
```
|
||||
$ ./generate-localizable-strings-file.sh
|
||||
```
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# generate-localizable-strings-file.sh
|
||||
|
||||
echo 'Generating Localizable.strings file...'
|
||||
cd NextcloudTalk
|
||||
genstrings -o en.lproj *.m *.swift ../ShareExtension/*.m ../NotificationServiceExtension/*.m ../ThirdParty/SlackTextViewController/Source/*.m
|
||||
iconv -f UTF-16LE -t UTF-8 en.lproj/Localizable.strings > en.lproj/Localizable-utf8.strings
|
||||
mv en.lproj/Localizable-utf8.strings en.lproj/Localizable.strings
|
||||
echo 'Localizable.strings file generated!'
|
||||
|
Загрузка…
Ссылка в новой задаче