-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localization support #58
Comments
michaelrsweet
added a commit
that referenced
this issue
Mar 9, 2022
michaelrsweet
added a commit
that referenced
this issue
Mar 13, 2022
Still need to implement positional parameter support and handle R-to-L languages.
michaelrsweet
added a commit
that referenced
this issue
Apr 7, 2022
michaelrsweet
added a commit
that referenced
this issue
Apr 17, 2022
michaelrsweet
added a commit
that referenced
this issue
Apr 19, 2022
michaelrsweet
added a commit
that referenced
this issue
Apr 19, 2022
All done. |
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
Still need to implement positional parameter support and handle R-to-L languages.
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
michaelrsweet
added a commit
that referenced
this issue
May 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add support for localization of the web interface using any string resource files that are added.
Breaking this down into sub-tasks:
pappl_loc_t
type and structure to hold per-printer localization information.cups_array_t *localizations
array topappl_system_t
structure to cache the various localizations.pappl_loc_t *papplSystemFindLoc(pappl_system_t *system, pappl_printer_t *printer, const char *language)
,papplLocFormatString(pappl_loc_t *loc, char *buffer, size_t bufsize, const char *key, ...)
, andconst char *papplLocGetString(pappl_loc_t *loc, const char *key)
APIs, plus corresponding private functions_papplLocCreate
and_papplLocDelete
.pappl_loc_t *papplClientGetLoc(pappl_client_t *client)
API to return the localization associated with the client'sAccept-Language
header.papplClientHTMLPrintf
andpapplClientHTMLPuts
to try localizing their inputs using the (cached) localization info and to set/restore the POSIX locale so that numbers are formatted properly.Might be able to internally base the caching on the strings files we are pulling instead of just on the printer since many printer applications won't use per-printer localization files but instead set them at the system level.
The text was updated successfully, but these errors were encountered: