Skip to content

Commit

Permalink
Merge pull request #182 from ascheman/feature/181-enable-language-by-…
Browse files Browse the repository at this point in the history
…propperty

Enable to select the target language by setting a Gradle property
  • Loading branch information
gernotstarke committed Mar 28, 2023
2 parents c633eff + 76f9a77 commit ab17794
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions README.adoc
Expand Up @@ -44,7 +44,7 @@ all downloads.
== Languages

The EN and DE versions are actively maintained by the founders (G.Starke & P.Hruschka).
Translations to additional languages (IT, ES, NL) have been provided by volunteers, but won't be automatically updated.
Translations to additional languages (see below) have been provided by volunteers, but won't be automatically updated.

== Build the HTML version

Expand All @@ -55,9 +55,14 @@ $> gradle asciidoctor
----

on the command line.
Within the `build.gradle` script, you might replace the default language (EN) with your choice.
To select another language set the Gradle build property `LANGUAGE` to one of the provided languages, cf.

>Currently (May 2022) you need to use **Java 8** to build!
[source, java]
----
include::gradle.properties[]
----

Currently (March 2022) you need to use **Java 8** to build!


== Questions on using arc42?
Expand Down
3 changes: 0 additions & 3 deletions build.gradle
Expand Up @@ -8,9 +8,6 @@ plugins {

apply plugin: 'java'

// what language are we building
// current choices: EN, DE, IT, ES
def LANGUAGE = 'EN'

// what version of the template are we building here
// 8.1 -> add UA and CZ version
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
@@ -0,0 +1,3 @@
# what language are we building?
# current choices: CZ, DE, EN, ES, IT, NL, UA
LANGUAGE = EN

0 comments on commit ab17794

Please sign in to comment.