-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOXIASITETOOLS-271] Overhaul locale support (make Locale#ROOT instea…
…d of Locale#ENGLISH default and use full locale) This closes #67
- Loading branch information
Showing
14 changed files
with
654 additions
and
117 deletions.
There are no files selected for viewing
264 changes: 189 additions & 75 deletions
264
doxia-integration-tools/src/main/java/org/apache/maven/doxia/tools/DefaultSiteTool.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
doxia-integration-tools/src/test/resources/unit/site-tool-locales-test/full/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.apache.maven.shared</groupId> | ||
<artifactId>site-tool-test</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>dummy</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>3.8.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
45 changes: 45 additions & 0 deletions
45
...a-integration-tools/src/test/resources/unit/site-tool-locales-test/full/src/site/site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
|
||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<project name="Maven Dummy Site"> | ||
<bannerLeft> | ||
<name>Maven Site</name> | ||
<src>http://maven.apache.org/images/apache-maven-project.png</src> | ||
<href>http://maven.apache.org/</href> | ||
</bannerLeft> | ||
<bannerRight> | ||
<src>http://maven.apache.org/images/maven-small.gif</src> | ||
</bannerRight> | ||
<skin> | ||
<groupId>org.apache.maven.skins</groupId> | ||
<artifactId>maven-stylus-skin</artifactId> | ||
</skin> | ||
<body> | ||
<links> | ||
<item name="Maven 2" href="http://maven.apache.org/maven2/"/> | ||
</links> | ||
|
||
<menu name="Overview from site.xml"> | ||
<item name="Test" href="/test.html"/> | ||
</menu> | ||
<menu ref="reports"/> | ||
</body> | ||
</project> |
45 changes: 45 additions & 0 deletions
45
...tion-tools/src/test/resources/unit/site-tool-locales-test/full/src/site/site_de_DE_BY.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
|
||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<project name="Maven Dummy Site"> | ||
<bannerLeft> | ||
<name>Maven Site</name> | ||
<src>http://maven.apache.org/images/apache-maven-project.png</src> | ||
<href>http://maven.apache.org/</href> | ||
</bannerLeft> | ||
<bannerRight> | ||
<src>http://maven.apache.org/images/maven-small.gif</src> | ||
</bannerRight> | ||
<skin> | ||
<groupId>org.apache.maven.skins</groupId> | ||
<artifactId>maven-stylus-skin</artifactId> | ||
</skin> | ||
<body> | ||
<links> | ||
<item name="Maven 2" href="http://maven.apache.org/maven2/"/> | ||
</links> | ||
|
||
<menu name="Overview from site_de_DE_BY.xml"> | ||
<item name="Test" href="/test.html"/> | ||
</menu> | ||
<menu ref="reports"/> | ||
</body> | ||
</project> |
Oops, something went wrong.