지원되는 파일 유형(Strings)

.STRINGS - iOS 문자열 리소스 (Strings)

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

파일 확장명 

.strings

API Extension 

strings

가져오기 

내보내기 

복수형 지원 

아니요

설명 지원 

형식 옵션 

파일이 업로드되거나 다운로드될 때 지정할 수 있는 옵션입니다. 업로드/다운로드 방법(API, CLI, Repo 동기화 등)에 따라 업로드, 다운로드 또는 phrase.yml 구성 파일에서 쿼리 매개변수로 지정할 수 있습니다.

convert_placeholder, include_pluralized_keys, multiline_comments

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

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

형식 옵션

식별자 

convert_placeholder

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

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

식별자 

include_pluralized_keys

유형 

부울

업로드 

아니요

다운로드 

기본값 

true

설명 

로캘 파일에 복수형 키도 포함하세요.

식별자 

multiline_comments

유형 

부울

업로드 

아니요

다운로드 

기본값 

false

설명 

활성화되면, 다중 행 주석이 .strings 파일 내에서 렌더링됩니다.

코드 샘플

"boolean_key" = "--- true\n";
"empty_string_translation" = "";
/* 이 키에 대한 놀라운 설명입니다! */
"key_with_description" = "확인해 보세요! 이 키에는 설명이 있습니다! (최소 일부 형식에서)";
"key_with_line-break" = "This translations contains\na line-break.";
"nested.deeply.key" = "와우, 이 키는 더 깊이 중첩되어 있습니다.";
"nested.key" = "This key is nested inside a namespace.";
"null_translation" = "";
"pluralized_key.one" = "Only one pluralization found.";
"pluralized_key.other" = "와우, 당신은 %s 개의 복수형을 가지고 있습니다!";
"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.