2016-07-07 2 views
0

현재 언어를 전환하는 데 유용한 광고 모음을 사용하고 있습니다.Xcode에서 Genstrings에 어떻게 액세스합니까?

To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts. 

Copy the genstrings file (either .swift or .py) into your project's root folder and run with 

./genstrings.swift 
or 

python genstrings.py 
This will print the collected strings in the terminal. Select and copy to your default Localizable.strings. 

The swift genstrings includes the ability to specify excluded directories and files (by editing the script). 

내가 genstrings에 익숙하지 않아요 정말 작가가 언급되어 모르는 : 다음과 같이 설치 과정의 일부이다. 나는 작가가 내 지역화 된 문자열 폴더를 의미 같은데요하지만 난 그것에 터미널을 실행했을 때이 오류가있어 :

-bash: ./genstrings.swift: No such file or directory 

어떤 생각이 지침의 의미를?

답변

0

나는 Localize-Swift을 사용하고 있습니다. 이 프로젝트의 README에 따르면 genstring.swift 파일을 프로젝트의 루트에 복사하고 명령 줄에서 실행해야한다고합니다. 그것은 나를 위해 일합니다.

+0

정확합니다. 시행 착오를 통해 알아 냈습니다. – SwiftyJD