サポートするファイル形式(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.