문자열 추출

POM 없음:

mvn -N com.adobe.granite.maven:xgettext-maven-plugin:1.2.2:extract  -Dxgettext.verbose=true -Dxgettext.target=out -Dxgettext.rules=i18n.any -Dxgettext.root=.

POM 사용: POM에 추가:

<build>
    <plugins>
        <plugin>
            <groupId>com.adobe.granite.maven</groupId>
            <artifactId>xgettext-maven-plugin</artifactId>
            <version>1.1</version>
            <configuration>
                <rules>i18n.any</rules>
                <root>jcr_root</root>
                <xliff>cq.xliff</xliff>
                <verbose>true</verbose>
            </configuration>
        </plugin>
    </plugins>
</build>

명령:

mvn xgettext:extract

출력 파일

  • raw.xliff: 추출된 문자열

  • warn.log: CQ.I18n.getMessage() API가 잘못 사용된 경우 경고(있는 경우). 이러한 작업에는 항상 수정 후 다시 실행해야 합니다.

  • parserwarn.log: 파서 경고(있는 경우)(예: js 파서 문제)

  • potentials.xliff: 추출되지 않았지만 사람이 읽을 수 있는 문자열로서 변환이 필요한 “잠재적” 후보입니다(무시할 수 있지만 여전히 엄청난 양의 오탐이 생성됨).

  • strings.xliff: 병합된 xliff 파일을 ALF로 가져옵니다.

  • backrefs.txt: 지정된 문자열의 소스 코드 위치를 빠르게 조회할 수 있습니다.

자동으로 번역됨
언어 선택기를 사용하여 이 페이지의 영어 버전을 확인합니다.
번역이 유용했나요?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.