サポートするファイル形式(Strings)

.PROPERTIES - Mozilla (Strings)

本コンテンツはPhrase Language AIの機械翻訳により、英語から翻訳されています。

ファイル拡張子 

.properties

API拡張 

mozilla_properties

インポート 

はい

エクスポート 

はい

複数形のサポート 

いいえ

説明のサポート 

いいえ

フォーマットオプション

ファイルがアップロードおよび/またはダウンロードされる際に指定できるオプションです。アップロード/ダウンロード方法(API、CLI、Repo syncなど)に応じて、クエリパラメータ アップロードダウンロード、または phrase.yml 設定ファイルで指定できます。

escape_single_quotes: true, omit_separator_space: false, crlf_line_terminators: false, escape_meta_chars: true

Mozilla Localizationは .properties ファイルを使用します。これらのプロパティの構文と要件は、標準の Java properties ファイルとほぼ同じです。

翻訳の前にサニティチェックを実行してください。これには、複製キーの削除(特に大きなファイルの場合)や、正しい改行の使用(テキスト Strings 内の改行はすべて \\n を前に付ける必要があります。そうしないと、パーサーによって無視されます)が含まれます。

コードサンプル

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 = I'm a deeply nested key.
nested.key = This key is nested inside a namespace.
null_translation = 
pluralized_key.one = Only one kitten found.
pluralized_key.other = Wow, you have %s kittens!
pluralized_key.zero = You have no kittens.
sample_collection = ---\n- first item\n- second item\n- third item\n
simple_key = Simple key, simple message, so simple.
unverified_key = 「この翻訳は検証待ちです。」(一部のファイル形式では、このステータスもエクスポートされます)
この記事は役に立ちましたか?

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.