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

Play Framework プロパティ

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

ファイル拡張子 

.de, .fr, .en,...

API拡張 

play_properties

インポート 

はい

エクスポート 

はい

複数形のサポート 

いいえ

説明のサポート 

はい

フォーマットオプション 

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

escape_single_quotes

Play Framework は、Scala ベースの広く使用されている Web 開発フレームワークです。Play Framework はローカライズと国際化をサポートしています。標準のローカライズファイル形式は Play Framework プロパティファイルです。これらは Phrase を使用してインポートおよびエクスポートできます。 Play Framework プロパティファイルは、Java プロパティファイル(つまり、= で接続されたキーと値の文字列ペア)と同じファイル構造を共有しています。その違いは主にファイル拡張子にあります。Java プロパティファイルは多くの場合 .properties で終わりますが、Play Framework プロパティファイルは通常、ロケールに基づいた規則(例: messages.en/messages.de)に従います。

ファイル形式オプション

識別子 

escape_single_quotes

タイプ 

ブール

アップロード 

はい

ダウンロード 

はい

デフォルト 

true

概要 

シングルクォートをエスケープするには、もう1つシングルクォートを追加します(例: I'mI''m にします)。

コードサンプル

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 = Just a simple key with a simple message.
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.