지원되는 파일 유형(Strings)

.STRINGS - iOS Strings 리소스 (Strings)

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

파일 확장명 

.strings

API 확장 

strings

가져오기 

내보내기 

복수형 지원 

아니요

설명 지원 

형식 옵션 

convert_placeholder, include_pluralized_keys, multiline_comments

Strings Resource 파일은 iOS 및 OS X 애플리케이션에 사용되는 표준 로컬라이제이션 파일입니다. Strings 자원 파일은 = 기호로 연결된 키 값 쌍으로 구성됩니다. 이 기능은 Java 속성 파일과 유사합니다. 키와 값을 모두 두 개의 키 견적에 포장하고 각 키 값 쌍이 세미콜론으로 끝납니다.

Strings 자원 파일을 사용하는 경우 타사 도구 (예: genstrings), 복제 키 Strings 파일이있을 수 있습니다. 일반적으로 복제 키는 문제가 없지만 번역 프로세스를 시작하기 전에 제거하는 것이 좋습니다.

형식 옵션

식별자 

convert_placeholder

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

형식별 요구 사항에 맞게 자리 표시자를 변환할 수 있습니다. 예: $s$@, %s%@

식별자 

include_pluralized_keys

유형 

부울

업로드 

아니요

다운로드 

기본값 

true

설명 

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

식별자 

multiline_comments

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

활성화하면 multiline 주석이 .strings 파일 내에서 렌더링됩니다.

코드 샘플

"boolean_key" = "--- true\n";
"empty_string_translation" = "";
/* 이 키에 대한 놀라운 설명입니다! */
"key_with_description" = "검토하세요! 이 키에는 설명이 있습니다! (최소 일부 형식으로)";
"key_with_line-break" = "This translations contains\na line-break.";
"nested.deeply.key" = "Wow, this 키 is nested even deeper.";
"nested.key" = "이 키는 네임스페이스 내에 중첩되어 있습니다.";
"null_translation" = "";
"pluralized_key.one" = "복수화가 하나만 발견되었습니다.";
"pluralized_key.other" = "Wow, you have %s pluralizations!"
"pluralized_key.zero" = "You have no pluralization.";
"sample_collection" = "---\n- 첫 번째 항목\n- 두 번째 항목\n- third item\n",
"simple_key" = "간단한 메시지가 담긴 간단한 키."
" 확인되지 않음_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.