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

.PROPERTIES - Mozilla (Strings)

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

ファイル拡張子 

.properties

API拡張 

mozilla_properties

インポート 

はい

エクスポート 

はい

複数形のサポート 

いいえ

説明のサポート 

いいえ

フォーマットオプション

ファイルがアップロードおよび/またはダウンロードされるときに指定できるこれらのオプション。アップロード/ダウンロード方法(API、CLI、リポジトリ同期など)に応じて、クエリパラメータUploadDownload、またはphrase.yml構成ファイルに指定できます。

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

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

翻訳の前に、重複キーの削除(特に大きなファイルの場合)や正しい改行の使用を含むサニティチェックを実行します(テキスト文字列内の任意の改行は\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 = 私は深くネストされたキーです。
nested.key = このキーは名前空間内にネストされています。
null_translation = 
pluralized_key.one = 子猫が1匹見つかりました。
pluralized_key.other = わあ、あなたは%s匹の子猫を飼っています\!
pluralized_key.zero = あなたは子猫を1匹も飼っていません。
sample_collection = ---\n- 最初のアイテム\n- 2番目のアイテム\n- 3番目のアイテム\n
simple_key = シンプルなキー、シンプルなメッセージ、非常にシンプルです。
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.