지원되는 파일 유형(Strings)

.XML - Java Properties (Strings)

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

파일 확장명 

.xml

API 확장 

properties_xml

가져오기 

내보내기 

복수형 지원 

아니요

설명 지원 

Java Properties XML은 Java Properties 파일의 XML에 해당합니다. Java Properties 파일의 키는 XML의 entry 요소에 속성으로 존재하며, 값은 entry 태그 안에 중첩된 인라인 텍스트 문자열입니다. 표준 Java Properties 파일과 비교할 때, XML 유형은 entry 요소에 더 많은 속성을 추가할 수 있는 유연성을 제공합니다. 예를 들어, class='translatable' 속성이 있는 키만 번역을 위해 선택되도록 결정할 수 있습니다.

코드 샘플

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
  <entry key="boolean_key">--- true
</entry>
  <entry key="empty_string_translation"/>
  <entry key="key_with_description">확인해 보세요! 이 키에는 설명이 있습니다! (최소 일부 형식으로)</entry>
  <entry key="key_with_line-break">이 번역에는
a line-break.</entry>
  <entry key="nested.deeply.key">와우, 이 키는 더 깊이 중첩되어 있습니다.</entry>
  <entry key="nested.key">이 키는 네임스페이스 안에 중첩되어 있습니다.</entry>
  <entry key="null_translation"/>
  <entry one="단수화가 하나만 발견되었습니다." other="와우, %s개의 복수형이 있습니다!" zero="복수형이 없습니다." key="pluralized_key"/>
  <entry key="sample_collection">---
- first item
- second item
- third item
</entry>
  <entry key="simple_key">간단한 키, 간단한 메시지, 아주 간단합니다.</entry>
  <entry key="unverified_key">이 번역은 아직 확인되지 않았으며 기다리고 있습니다. (일부 형식에서 이 상태도 내보냅니다.)</entry>
</properties>
도움이 되었습니까?

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.