| Commit message (Expand) | Author | Age | Files | Lines |
| * | aux/workflow/l10n.sh: Feed files to mdpo via STDIN instead of the positional ...•••After a lot (a lot) of debugging, I've discovered the issue to be with mdpo,
and how it behaved differently in an unexpected way when in a pipe instead of
being invoked directly.
An issue was filled [0] upstream to report problem, but the workaround was
enough to address #task-f957647c-df05-c0c1-a38b-2e6faea99b8f.
[0]: https://github.com/mondeja/mdpo/issues/159
| EuAndreh | 2021-07-16 | 1 | -2/+2 |
| * | aux/workflow/l10n.sh: Put positional arguments at the end | EuAndreh | 2021-07-16 | 1 | -2/+2 |
| * | aux/workflow/styles.css, aux/ci/ci-build.sh: spaces -> tabs | EuAndreh | 2021-07-16 | 1 | -31/+31 |
| * | aux/workflow/style.css: Be less specific on selectors, remove reference to pr... | EuAndreh | 2021-07-15 | 1 | -7/+2 |
| * | aux/workflow/style.css: Switch colors of INACTIVE and WAITING | EuAndreh | 2021-07-15 | 1 | -2/+2 |
| * | aux/lib.sh: Add mkstemp and mkdtemp, and copy uuid over•••The tests were relying on the unspecified and non-standartized
behaviour of "mktemp". Now they use "mkstemp()", a shim sh function to
provide the expected behaviour, and an accompanying "mkdtemp()"
function is also defined.
To further decouple from specific implementations and OS-behaviours and
quirks, a aux/lib.sh file containing both those functions was added.
Its purpose is to also allow code under aux/ to not depend on specific
behaviour.
"mkdtemp()" had to be replicated in aux/ci/ci-build.sh, since it runs
outside the repository.
| EuAndreh | 2021-07-15 | 3 | -9/+15 |
| * | aux/workflow/l10n.sh: Support "-L CONTRIBLANGS" option•••Adjust Makfile to include it and give it both to aux/workflow/l10n.sh
and to aux/workflow/public.sh
| EuAndreh | 2021-07-15 | 1 | -6/+14 |
| * | aux/workflow/assert-manpages.sh: Get input languages and en files as arguments | EuAndreh | 2021-07-15 | 1 | -46/+35 |
| * | Add trailing /en/ to all default URLs, and the equivalent for translations | EuAndreh | 2021-07-15 | 3 | -7/+7 |
| * | aux/workflow/assert-manpages.sh: Exit with error for unknown language | EuAndreh | 2021-07-14 | 1 | -1/+12 |
| * | aux/workflow/TODOs.sh: Move Perl regexes to top-level pipe over nested pipe | EuAndreh | 2021-07-14 | 1 | -3/+4 |
| * | aux/workflow/TODOs.sh: Order regex definitions by usage | EuAndreh | 2021-07-14 | 1 | -2/+1 |
| * | aux/workflow/TODOs.sh: Allow tags to appear after the ID marker•••Adjust aux/workflow/assert-todos.sh accordingly.
| EuAndreh | 2021-07-14 | 2 | -2/+2 |
| * | CHANGELOG.md: Link to the translated page, and to en/ version explicitly | EuAndreh | 2021-07-14 | 1 | -1/+1 |
| * | aux/workflow/l10n.sh: Touch $pofile before generating it•••For some reason, sometimes it doesn't generate the file if it doesnt
already exist.
| EuAndreh | 2021-07-13 | 1 | -0/+1 |
| * | aux/workflow/l10n.sh: Fix --include-codeblocks argument to md2po | EuAndreh | 2021-07-13 | 1 | -1/+1 |
| * | mv po/* po/LC_MESSAGES/ | EuAndreh | 2021-07-13 | 1 | -1/+1 |
| * | README.md: Remove "released in" text from the releases list, adjust in aux/wo... | EuAndreh | 2021-07-13 | 1 | -1/+1 |
| * | git mv doc/spelling/ po/ | EuAndreh | 2021-07-08 | 1 | -4/+4 |
| * | aux/workflow/installcheck.sh: Add, call it from Makefile•••Implements #task-0b034315-cbd2-6fd6-fd32-9e00a12b7594.
| EuAndreh | 2021-07-07 | 1 | -0/+60 |
| * | Put pofiles under po/, use one folder for each translated file.•••This is an improvement over 67f7c956239a7bc811a1d655d389666048e45fc3,
and a final step for #task-7c5cd2aa-6d92-0423-bfa7-81f2e8436586.
Now instead of trying to convince po4a and mdpo to work together, each
tools gets it own folder and a pofile for each language. This means
that if I want to translate files FOO.md and a-dir/BAR.txt to pt and
fr, the directory structure of po/ will be:
po/
FOO.md/
pt.po
fr.po
a-dir/
BAR.txt/
pt.po
fr.po
The po/ folder mirrors the directory structure of the input files, also
nesting down directories.
This way mdpo can do extration and update on its own way, and po4a can
do extraction and update on its on way.
The downside is that some translations will be duplicated, because
they can appear on more than one file.
| EuAndreh | 2021-07-07 | 1 | -17/+13 |
| * | Translate CHANGELOG.md adn README.md•••Partially implements #task-7c5cd2aa-6d92-0423-bfa7-81f2e8436586.
As mentioned in the task, instead of making "README.md" as symlink to
"README.en.md", "README.md" is kept as it is, as the translated file
doesn't need to live in the repository. The same goes for the
"CHANGELOG.md" file.
| EuAndreh | 2021-07-06 | 3 | -32/+56 |
| * | aux/workflow/*: Don't inherit global PROJECT_UC | EuAndreh | 2021-06-26 | 4 | -0/+4 |
| * | aux/workflow/sign-tarballs.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 2 | -2/+22 |
| * | aux/ci/report.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 1 | -1/+1 |
| * | aux/workflow/commonmark.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 2 | -16/+48 |
| * | aux/workflow/TODOs.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 2 | -5/+36 |
| * | aux/workflow/public.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 1 | -4/+35 |
| * | aux/workflow/dist.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 1 | -7/+41 |
| * | aux/workflow/assert-manpages.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 1 | -6/+19 |
| * | aux/workflow/assert-readme.sh: Use getopts for arguments | EuAndreh | 2021-06-26 | 1 | -4/+24 |
| * | aux/workflow/assert-spelling.sh: Define assert_arg anyway | EuAndreh | 2021-06-26 | 1 | -4/+8 |
| * | aux/workflow/assert-changelog.sh: Use getopts for arugments | EuAndreh | 2021-06-26 | 1 | -4/+27 |
| * | aux/workflow/manpages.sh: s/assert/assert_arg/ | EuAndreh | 2021-06-26 | 1 | -6/+6 |
| * | aux/workflow/assert-spelling.sh: Get files as arguments instead of assuming t... | EuAndreh | 2021-06-26 | 1 | -2/+3 |
| * | aux/workflow/l10n.sh: Mark WARNING message with yellow color | EuAndreh | 2021-06-26 | 1 | -1/+3 |
| * | aux/workflow/l10n.sh: mkdir -p doc/po | EuAndreh | 2021-06-26 | 1 | -0/+1 |
| * | aux/workflow/assert-manpages.sh: Skip when file is empy | EuAndreh | 2021-06-26 | 1 | -0/+4 |
| * | Release v0.2.1v0.2.1 | EuAndreh | 2021-06-25 | 1 | -0/+10 |
| * | git mv po/ doc/po/ | EuAndreh | 2021-06-25 | 1 | -2/+2 |
| * | aux/workflow/assert-spelling.sh: Add; init dictionaries; fix spelling•••- aux/workflow/l10n.sh: fix handling of $@;
- Makefile: remove circular dependency between dev-check and public by
adding the "l10n-gen" target.
| EuAndreh | 2021-06-25 | 3 | -16/+86 |
| * | aux/workflow/manpages.sh: Add missing suffix to HTML files | EuAndreh | 2021-06-23 | 1 | -1/+1 |
| * | README.md, aux/workflow/assert-readme.sh: Link to commit in the releases sect... | EuAndreh | 2021-06-23 | 1 | -1/+1 |
| * | aux/workflow/{l10n,manpages}.sh: Fix ShellCheck offenses | EuAndreh | 2021-06-23 | 2 | -2/+2 |
| * | aux/workflow/manpages.sh: Refactor how manpages and translations are made•••I didn't like the previous version of aux/workflow/manpages.sh mainly for 2 reasons:
1. its CLI was terrible, ugly and fragile;
2. it mixed handling manpages and handling *translations*.
The first step was to split the translations part to a different file:
aux/workflow/l10n.sh. Now it has the base logic for running po4a, and
can apply it to manpages. It is useful for updating translated files
in other scenarios, such as catgets() message catalogs, markdown files,
etc.
After I used the venerable getopts to handle the command line
arguments, and give aux/workflow/manpages.sh a saner interface.
I disliked the fact that aux/workflow/manpages.sh still is being used
for the "install" and "uninstall" targets. Before this file, the
canonical workflow of "make && make install/uninstall" was 100%
embedded within the Makefile itself. But now the Makefile calls to an
external script for that. This isn't a real cost, other than how
obvious the behaviour is for someone looking at the Makefile for the
first time.
I still chose to do it anyway, because there was already too many
things in the Makefile itself, and it was getting worse with time. I
made sure to never cross the line of relying on an external tool for
the canonical "make && make install/uninstall", and even for
"make check". Those all work without requiring any extra tool outside
what POSIX defines, such as "sed", "awk", etc. Despite the cost of
adding this detour from the liner Makefile flow, I found it to be worth
it to call to the external script, as this script can now also be
shared across projects, and the customized Makefile be made simpler.
In other to remove the "-- $(do_subst)" horrendous hack, I chose to use
an inference rule for ".in" files, and remove the "$(do_subst)"
variable altogether. Now all the files that need to go through sed
should end in ".in", and the Makefile will take care of producing it.
The upside is that this model is much better integrater into make
itself.
Addresses #task-9ee2bbc8-295f-52b7-4104-483869bad017.
| EuAndreh | 2021-06-23 | 4 | -55/+109 |
| * | git mv doc/*.po po/ | EuAndreh | 2021-06-23 | 1 | -2/+2 |
| * | aux/workflow/public.sh: Spell out .{svg,png} files (ShellCheck offense) | EuAndreh | 2021-06-23 | 1 | -1/+1 |
| * | aux/: Explicitly pass "public/" as a parameter to scripts | EuAndreh | 2021-06-23 | 3 | -12/+13 |
| * | aux/workflow/assert-readme.sh: No need to create the public/ directory | EuAndreh | 2021-06-23 | 1 | -2/+0 |
| * | aux/workflow/public.sh: Selectively copy favicon files | EuAndreh | 2021-06-23 | 1 | -1/+1 |