Skip to content

Commit

Permalink
[Template merge] Add support for speller names and descriptions in co…
Browse files Browse the repository at this point in the history
…nfigure.ac, manifest.toml and other places
  • Loading branch information
snomos committed Jan 26, 2024
1 parent 559a947 commit a909374
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
24 changes: 21 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ AC_SUBST([SPELLERVERSION], [0.1.1])
AC_SUBST([GRAMCHECKVERSION], [0.1.0])

########## LANGUAGE SPECIFIC SETTINGS ##########
# GLANG is the language code used to identify this project; it should be the
# same as the directory name in $GIELLA_HOME/*langs/ and the same as the ISO 639
# three-letter code for the language.
# GLANG is the language code used to identify this project; it is the
# ISO 639-3 three-letter code for the language.
# It is also the second part of the repo name lang-XXX.
# GTLANG is deprecated, defined for backwards compatibility.
AC_SUBST([GLANG], [mhr])
AC_SUBST([GTLANG], $GLANG)
Expand All @@ -72,6 +72,24 @@ AC_SUBST([GTLANG2], $GLANG2)
AC_SUBST([GLANGUAGE], ["Eastern Mari"])
AC_SUBST([GTLANGUAGE], $GLANGUAGE)

### Speller release version (usually different from the package version,
### typically spellers are released more often than the language package):
### Translate the *_NAT placeholder contents into
### the native language of this repo.
### The AC variables SPELLER_NAME_xxx and SPELLER_DESC_xxx are used in:
### - manifest.toml.in
### - tools/spellcheckers/index.*.xml.in
AC_SUBST([SPELLERVERSION], [0.1.0])
AC_SUBST([SPELLER_NAME_ENG], ["$GLANGUAGE spellchecker"])
AC_SUBST([SPELLER_NAME_NATIVE], ["Autonym spellchecker"])
AC_SUBST([SPELLER_DESC_ENG], ["A spellchecker for $GLANGUAGE, made by members of the language community, and by the Divvun and Giellatekno groups at UiT The Arctic University of Norway"])
AC_SUBST([SPELLER_DESC_NATIVE], ["TRANSLATE: A spellchecker for $GLANGUAGE, made by members of the language community, and by the Divvun and Giellatekno groups at UiT The Arctic University of Norway"])

### Grammar checker release version (usually different from the package version,
### typically grammar checkers are released more often than the language
### package, and also different from the speller release version):
AC_SUBST([GRAMCHECKVERSION], [0.1.0])

# Alternate writing system(s) should be listed here using the ISO 15924 code.
# Multiple alternate WS's should be space separated. For a list of such codes
# see http://en.wikipedia.org/wiki/ISO_15924 and
Expand Down
12 changes: 12 additions & 0 deletions manifest.toml.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name = "Eastern Mari"
version = "@SPELLERVERSION@"

# Name of the speller package in various languages.
# The default is English + autonym:
[speller.name]
en = "@SPELLER_NAME_ENG@"
mhr = "@SPELLER_NAME_NATIVE@"

# Description of the speller package in various languages.
# The default is English + autonym:
[speller.description]
en = "@SPELLER_DESC_ENG@"
mhr = "@SPELLER_DESC_NATIVE@"

[macos]
system_pkg_id = "no.divvun.MacDivvun.mhr"

Expand Down

0 comments on commit a909374

Please sign in to comment.