지원되는 파일 유형(Strings)

.Strings - iOS Strings 리소스 (Strings)

컨텐츠는 영어 텍스트를 Phrase Language AI를 이용해 기계 번역한 것입니다.

파일 확장명 

.Strings

API 확장 

strings

가져오기 

내보내기 

복수형 지원 

아니요

설명 지원 

형식 옵션 

파일을 업로드 및/또는 다운로드할 때 지정할 수 있는 옵션입니다. 업로드/다운로드 방식(API, CLI, Repo 동기화 등)에 따라 문의 매개변수 업로드, 다운로드 또는 phrase.yml 구성 파일에서 지정할 수 있습니다.

convert_placeholder, include_pluralized_keys, multiline_comments

Strings Resource 파일은 iOS 및 OS X 애플리케이션에 사용되는 표준 로컬라이제이션 파일입니다. Strings 리소스 파일은 = 기호로 연결된 키-값 쌍으로 구성됩니다. Java Properties 파일과 유사하지만, 키와 값 모두 큰따옴표로 묶여 있고 각 키-값 쌍이 세미콜론으로 끝난다는 점이 다릅니다.

타사 도구(예: genstrings)를 사용하여 Strings 리소스 파일을 생성하는 경우, 복제 키 Strings가 포함된 파일이 생성될 수 있습니다. 복제 키는 일반적으로 문제가 되지 않지만, 번역 프로세스를 시작하기 전에 제거하는 것이 좋습니다.

형식 옵션

식별자 

convert_placeholder

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

자리 표시자는 형식별 요구 사항에 맞게 변환됩니다. 예시: $s$@, %s%@

식별자 

include_pluralized_keys

유형 

부울

업로드 

아니요

다운로드 

기본값 

true

설명 

로캘 파일에 복수형 키도 포함합니다.

식별자 

multiline_comments

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

활성화되면 여러 줄 주석이 .strings 파일 내에 렌더링됩니다.

코드 샘플

"boolean_key" = "--- true\n";
"empty_string_translation" = "";
/* 이 키에 대한 놀라운 설명입니다! */
\"key_with_description\" = \"Check it out! 이 키에는 설명이 있습니다! (최소 일부 형식으로)\";
"key_with_line-break" = "This translations contains\na line-break.";
\"nested.deeply.key\" = \"Wow, this key is nested even deeper.\";
"nested.key" = "This key is nested inside a namespace.";
"null_translation" = "";
"pluralized_key.one" = "Only one pluralization found.";
\"pluralized_key.other\" = \"Wow, you have %s pluralizations!\";
"pluralized_key.zero" = "You have no pluralization.";
"sample_collection" = "---\n- first item\n- second item\n- third item\n";
"simple_key" = "간단한 메시지가 있는 간단한 키입니다.";
"unverified_key" = "이 번역은 아직 확인되지 않았으며 확인을 기다리고 있습니다. (일부 형식에서는 이 상태도 내보내기 합니다)\";

iOS 로컬라이저블 문자열의 복수형

복수 값의 경우 다음 접미사 연산자를 추가하십시오:

"messages.zero" = "No messages received";
"messages.one" = "One message received";
"messages.other" = "%s messages received";
도움이 되었습니까?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.