https://github.com/rootcircle/hello-world-c-i18n
Example Hello World with i18n support
https://github.com/rootcircle/hello-world-c-i18n
c gettext i18n
Last synced: 11 months ago
JSON representation
Example Hello World with i18n support
- Host: GitHub
- URL: https://github.com/rootcircle/hello-world-c-i18n
- Owner: rootCircle
- License: apache-2.0
- Created: 2023-11-04T19:45:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T21:39:45.000Z (over 2 years ago)
- Last Synced: 2025-03-24T01:42:51.365Z (about 1 year ago)
- Topics: c, gettext, i18n
- Language: Makefile
- Homepage:
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello world in C with i18n support with GNU gettext()
## Creating and Updating Locales
```bash
make locale
make edit-locale
make patch-locale
```
## Running Code
```bash
make run
make run-default
```
## Running normally
```bash
LANGUAGE=en_US ./hello # Replace en_US with your required locale
```
## Resources
- https://stackoverflow.com/questions/1003360/complete-c-i18n-gettext-hello-world-example
- https://fedoraproject.org/wiki/How_to_do_I18N_through_gettext
- https://web.archive.org/web/20120817202656/http://oriya.sarovar.org/docs/gettext/node4.html