Skip to content

Commit

Permalink
include navbar sidebar and modals for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed May 30, 2024
1 parent 96fd3c3 commit 10973cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
sudo apt-get install -y gettext
[[ -f i18n/litcal.pot ]] || mkdir i18n && touch i18n/litcal.pot
xgettext --from-code=UTF-8 --add-comments='translators:' --keyword="pgettext:1c,2" -o i18n/litcal.pot index.php admin.php
xgettext --from-code=UTF-8 --add-comments='translators:' --keyword="pgettext:1c,2" -o i18n/litcal.pot index.php admin.php layout/topnavbar.php layout/sidebar.php components/NewTestModal.php
echo "POT_LINES_CHANGED=$(git diff -U0 | grep '^[+|-][^+|-]' | grep -Ev '^[+-]"POT-Creation-Date' | wc -l)" >> $GITHUB_OUTPUT
# push the output folder to your repo
Expand Down
2 changes: 1 addition & 1 deletion layout/topnavbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
</li>
<?php if ($pageName === 'index') { ?>
<li class="me-2"><div class="text-white bg-secondary p-2" id="websocket-status"><i class="fas fa-plug fa-fw"></i> Websocket connection status</div></li>
<li class="me-2"><div class="text-white bg-secondary p-2" id="websocket-status"><i class="fas fa-plug fa-fw"></i> <?php echo _("Websocket connection status"); ?></div></li>
<?php } ?>
</ul>
<a class="btn btn-outline-light text-dark border-0 fw-bold"
Expand Down

0 comments on commit 10973cf

Please sign in to comment.