- Lua 89.4%
- C 6.9%
- Makefile 3.7%
|
Victoria Lacroix
a009a9be90
tally: Redo the "No Matches" page logic
Previously, some hacky bespoke logic was being used to show a status page when no tallies matched the given search query. This commit instead changes the app to use the Gtk.ListBox:set_placeholder() function to show an appropriate status page. For consistency with previous versions (as well as for GNOME HIG consistency), CSS classes are swapped around so that the placeholder status page looks like an ordinary status page instead of a child element to the counter list. Fixes #22 |
||
|---|---|---|
| .github/workflows | Adds a CI workflow | |
| data | main: incorporate some Circle feedback | |
| icons | Enhance the icon | |
| po | Tweak a few things | |
| .gitignore | Add translator credits | |
| ca.vlacroix.Tally.desktop | Add "tally" keyword to Italian keywords | |
| ca.vlacroix.Tally.Devel.desktop | 0.7.2 | |
| ca.vlacroix.Tally.Devel.json | flatpak: Update runtime and dependency versions | |
| ca.vlacroix.Tally.metainfo.xml | metainfo: Fix urls to vtrlx.ca | |
| COPYING | Licenses the code under GPLv3+ | |
| counter.lua | counter: fix selection mode not working | |
| main.c | Use #embed instead of linker hack | |
| main.lua | tally: Redo the "No Matches" page logic | |
| Makefile | makefile: Fix build | |
| README.md | docs: Point links to codeberg.org | |
| tally.doap | docs: Point links to codeberg.org | |
| tally.png | Update app image | |
Tally
Count anything.
This application is a tally counter for the GNOME desktop on Linux.
Installing
Contributing
When interacting with this project, please follow the GNOME Code of Conduct.
Issues with the app can be reported on Codeberg.
Code submissions may be done as Pull Requests on GitHub.
Please do not spam this repository with ChatGPT, Copilot, or similar software.
Building
To compile and run Tally from source, use Flatpak Builder.
flatpak-builder .build ca.vlacroix.Tally.Devel.json --user --install --force-clean
flatpak run ca.vlacroix.Tally.Devel
Localization
Tally uses gettext for localization. These instructions assume you have it installed on your system.
To create a message file for your desired language, execute this command in a terminal from Tally's root folder:
make po/<LANG>.po
<LANG> should be replaced by the two-letter language code for the language you're translating the app to, optionally followed by an underscore _ character and a two-letter country code in ALL-CAPS i.e. fr for French or fr_CA for Canadian French.
This command creates a file in the po/ folder named <LANG>.po.
Next, edit the <LANG>.po file and add your translated strings. I recommend using Translation Editor for this.
The last strings to localize are for the ca.vlacroix.Tally.desktop and ca.vlacroix.Tally.Devel.desktop files. Add new lines for the Comment, Keywords, and (if applicable) Name keys. Be sure to keep the translated lines in alphabetical order with respect to the language codes.
Once finished, try running Tally in your language using the testing instructions above. If all the strings appear to have been translated, commit your finished <LANG>.po file to Git, push the commit to a branch under your control, and submit a pull request on GitHub.
Updating a Localization
If the application is updated and the translation needs to be changed, again run this command in the project's root folder:
make po/<LANG>.po
This will update the given .po file with the new translatable strings. The updated .po file for your language may then be modified, committed, and put into a pull request as usual.