Skip to content

Commit

Permalink
Adding Norwegian translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sydseter committed Jan 24, 2024
1 parent d5813bd commit 832aa59
Show file tree
Hide file tree
Showing 9 changed files with 1,246 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Merges to the main branch will generate new DOCX and IDML files to use to print

```bash
(cornucopia) ➜ cornucopia git:(master) ✗ python ./scripts/convert.py --help
usage: convert.py [-h] [-i INPUTFILE] [-t {all,docx,pdf,idml}] [-o OUTPUTFILE] [-l {template,all,en,es,fr,nl,pt-br}] [-d] [-s {all,static,dynamic}] [-u URL]
usage: convert.py [-h] [-i INPUTFILE] [-t {all,docx,pdf,idml}] [-o OUTPUTFILE] [-l {template,all,en,es,fr,nl,no-nb,pt-br}] [-d] [-s {all,static,dynamic}] [-u URL]

Tool to output OWASP Cornucopia playing cards into different file types and languages.
Example usage: $ ./cornucopia/convert.py -t docx -l es -v 1.30
Expand All @@ -44,8 +44,8 @@ options:
-o OUTPUTFILE, --outputfile OUTPUTFILE
Specify a path and name of output file to generate. (caution: existing file will be overwritten).
default = output/owasp_cornucopia_edition_component_lang_ver.(docx|pdf|idml)
-l {template,all,en,es,fr,nl,pt-br}, --language {template,all,en,es,fr,nl,pt-br}
Output language to produce. [`en`, `es`, `fr`, `pt-br`, `template`]
-l {template,all,en,es,fr,nl,no-nb,pt-br}, --language {template,all,en,es,fr,nl,no-nb,pt-br}
Output language to produce. [`en`, `es`, `fr`, `nl`, `no-nb`, `pt-br`, `template`]
Template will attempt to create a template from the english input file and
replacing strings with the template lookup codes
-d, --debug Output additional information to debug script
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class ConvertVars:
BASE_PATH = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
FILETYPE_CHOICES: List[str] = ["all", "docx", "pdf", "idml"]
LANGUAGE_CHOICES: List[str] = ["template", "all", "en", "es", "fr", "nl", "pt-br"]
LANGUAGE_CHOICES: List[str] = ["template", "all", "en", "es", "fr", "nl", "no-nb", "pt-br"]
VERSION_CHOICES: List[str] = ["1.20", "1.21", "1.30"]
STYLE_CHOICES: List[str] = ["all", "static", "dynamic"]
DEFAULT_TEMPLATE_FILENAME: str = os.sep.join(
Expand Down Expand Up @@ -236,7 +236,7 @@ def parse_arguments(input_args: List[str]) -> argparse.Namespace:
choices=convert_vars.LANGUAGE_CHOICES,
default="en",
help=(
"Output language to produce. [`en`, `es`, `fr`, `pt-br`, `template`] "
"Output language to produce. [`en`, `es`, `fr`, `nl`, `no-nb`, `pt-br`, `template`] "
"\nTemplate will attempt to create a template from the english input file and "
"\nreplacing strings with the template lookup codes"
),
Expand Down
1,241 changes: 1,241 additions & 0 deletions source/ecommerce-cards-1.30-no_nb.yaml

Large diffs are not rendered by default.

0 comments on commit 832aa59

Please sign in to comment.