Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/documentation/booksdevelopers-handbookl10n_index/id/units/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/units/?format=api&page=2", "previous": null, "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Localization and Internationalization - L10N and I18N in FreeBSD" ], "previous_source": "", "target": [ "" ], "id_hash": -615455319560809619, "content_hash": -615455319560809619, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: description", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 1, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1176216/?format=api", "priority": 100, "id": 1407458, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=777576a5ce74136d", "url": "https://translate-dev.freebsd.org/api/units/1407458/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.808509Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Chapter 4. Localization and Internationalization - L10N and I18N" ], "previous_source": "", "target": [ "" ], "id_hash": -3061340184985261201, "content_hash": -3061340184985261201, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:1", "context": "", "note": "type: YAML Front Matter: title", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 2, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/1065834/?format=api", "priority": 100, "id": 1407459, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=5583ef5249532b6f", "url": "https://translate-dev.freebsd.org/api/units/1407459/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.814484Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Localization and Internationalization - L10N and I18N" ], "previous_source": "", "target": [ "" ], "id_hash": 5346299408540032043, "content_hash": 5346299408540032043, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:14", "context": "", "note": "type: Title =", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 3, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1065836/?format=api", "priority": 100, "id": 1407460, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=ca31defc74e8dc2b", "url": "https://translate-dev.freebsd.org/api/units/1407460/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.818686Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Programming I18N Compliant Applications" ], "previous_source": "", "target": [ "" ], "id_hash": -6919441826142320012, "content_hash": -6919441826142320012, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:52", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 4, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1065838/?format=api", "priority": 100, "id": 1407461, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=1ff93451e4ce8a74", "url": "https://translate-dev.freebsd.org/api/units/1407461/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.822672Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "To make your application more useful for speakers of other languages, we hope that you will program I18N compliant. The GNU gcc compiler and GUI libraries like QT and GTK support I18N through special handling of strings. Making a program I18N compliant is very easy. It allows contributors to port your application to other languages quickly. Refer to the library specific I18N documentation for more details." ], "previous_source": "", "target": [ "" ], "id_hash": -4531079346701084785, "content_hash": -4531079346701084785, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:59", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 5, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/1191636/?format=api", "priority": 100, "id": 1407462, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=411e5f5742c5d78f", "url": "https://translate-dev.freebsd.org/api/units/1407462/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.829493Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "In contrast with common perception, I18N compliant code is easy to write. Usually, it only involves wrapping your strings with library specific functions. In addition, please be sure to allow for wide or multibyte character support." ], "previous_source": "", "target": [ "" ], "id_hash": -4582585189973318810, "content_hash": -4582585189973318810, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:63", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 6, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/1191638/?format=api", "priority": 100, "id": 1407463, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=4067630c9eaca366", "url": "https://translate-dev.freebsd.org/api/units/1407463/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.833604Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "A Call to Unify the I18N Effort" ], "previous_source": "", "target": [ "" ], "id_hash": 6471182616011102974, "content_hash": 6471182616011102974, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:64", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 7, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1065844/?format=api", "priority": 100, "id": 1407464, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=d9ce424db0065afe", "url": "https://translate-dev.freebsd.org/api/units/1407464/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.838989Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "It has come to our attention that the individual I18N/L10N efforts for each country has been repeating each others' efforts. Many of us have been reinventing the wheel repeatedly and inefficiently. We hope that the various major groups in I18N could congregate into a group effort similar to the Core Team's responsibility." ], "previous_source": "", "target": [ "" ], "id_hash": 6736224788693695008, "content_hash": 6736224788693695008, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:69", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 8, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 52, "source_unit": "https://translate-dev.freebsd.org/api/units/1191640/?format=api", "priority": 100, "id": 1407465, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=dd7be0c15944ba20", "url": "https://translate-dev.freebsd.org/api/units/1407465/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.842837Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Currently, we hope that, when you write or port I18N programs, you would send it out to each country's related FreeBSD mailing list for testing. In the future, we hope to create applications that work in all the languages out-of-the-box without dirty hacks." ], "previous_source": "", "target": [ "" ], "id_hash": -2652224617014778889, "content_hash": -2652224617014778889, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:72", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 9, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 43, "source_unit": "https://translate-dev.freebsd.org/api/units/1191642/?format=api", "priority": 100, "id": 1407466, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=5b3167c34e49a3f7", "url": "https://translate-dev.freebsd.org/api/units/1407466/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.847606Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The {freebsd-i18n} has been established. If you are an I18N/L10N developer, please send your comments, ideas, questions, and anything you deem related to it." ], "previous_source": "", "target": [ "" ], "id_hash": -8529914060423917131, "content_hash": -8529914060423917131, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:75", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 10, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1191644/?format=api", "priority": 100, "id": 1407467, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=099fa85affd291b5", "url": "https://translate-dev.freebsd.org/api/units/1407467/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.851573Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Perl and Python" ], "previous_source": "", "target": [ "" ], "id_hash": -4392296854215957977, "content_hash": -4392296854215957977, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:76", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 11, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1065852/?format=api", "priority": 100, "id": 1407468, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=430b6d4850646227", "url": "https://translate-dev.freebsd.org/api/units/1407468/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.855525Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Perl and Python have I18N and wide character handling libraries. Please use them for I18N compliance." ], "previous_source": "", "target": [ "" ], "id_hash": 6533953394019061361, "content_hash": 6533953394019061361, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:80", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 12, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 16, "source_unit": "https://translate-dev.freebsd.org/api/units/1191646/?format=api", "priority": 100, "id": 1407469, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=daad43fe5576ce71", "url": "https://translate-dev.freebsd.org/api/units/1407469/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.861226Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Localized Messages with POSIX.1 Native Language Support (NLS)" ], "previous_source": "", "target": [ "" ], "id_hash": 4477316963374520687, "content_hash": 4477316963374520687, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:82", "context": "", "note": "type: Title ==", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 13, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1065856/?format=api", "priority": 100, "id": 1407470, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=be22a00e6cc4d96f", "url": "https://translate-dev.freebsd.org/api/units/1407470/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.865151Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Beyond the basic I18N functions, like supporting various input encodings or supporting national conventions, such as the different decimal separators, at a higher level of I18N, it is possible to localize the messages written to the output by the various programs. A common way of doing this is using the POSIX.1 NLS functions, which are provided as a part of the FreeBSD base system." ], "previous_source": "", "target": [ "" ], "id_hash": 4684518936101328590, "content_hash": 4684518936101328590, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:86", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 14, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 64, "source_unit": "https://translate-dev.freebsd.org/api/units/1191648/?format=api", "priority": 100, "id": 1407471, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=c102c12719e916ce", "url": "https://translate-dev.freebsd.org/api/units/1407471/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.869792Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Organizing Localized Messages into Catalog Files" ], "previous_source": "", "target": [ "" ], "id_hash": 241766556312037482, "content_hash": 241766556312037482, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:88", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 15, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/1065860/?format=api", "priority": 100, "id": 1407472, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=835aed66eb8c686a", "url": "https://translate-dev.freebsd.org/api/units/1407472/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.873865Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "POSIX.1 NLS is based on catalog files, which contain the localized messages in the desired encoding. The messages are organized into sets and each message is identified by an integer number in the containing set. The catalog files are conventionally named after the locale they contain localized messages for, followed by the `.msg` extension. For instance, the Hungarian messages for ISO8859-2 encoding should be stored in a file called [.filename]#hu_HU.ISO8859-2#." ], "previous_source": "", "target": [ "" ], "id_hash": 6922777308786151984, "content_hash": 6922777308786151984, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:94", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 16, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 70, "source_unit": "https://translate-dev.freebsd.org/api/units/1191650/?format=api", "priority": 100, "id": 1407473, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=e012a548ad555230", "url": "https://translate-dev.freebsd.org/api/units/1407473/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.877386Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "These catalog files are common text files that contain the numbered messages. It is possible to write comments by starting the line with a `$` sign. Set boundaries are also separated by special comments, where the keyword `set` must directly follow the `$` sign. The `set` keyword is then followed by the set number. For example:" ], "previous_source": "", "target": [ "" ], "id_hash": 1252555368424760354, "content_hash": 1252555368424760354, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:99", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 17, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 56, "source_unit": "https://translate-dev.freebsd.org/api/units/1191652/?format=api", "priority": 100, "id": 1407474, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=9161f878a4776422", "url": "https://translate-dev.freebsd.org/api/units/1407474/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.881616Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "$set 1\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2960450316256903710, "content_hash": 2960450316256903710, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:103", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 18, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 2, "source_unit": "https://translate-dev.freebsd.org/api/units/1065866/?format=api", "priority": 100, "id": 1407475, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=a915a1e0a3af821e", "url": "https://translate-dev.freebsd.org/api/units/1407475/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.907960Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The actual message entries start with the message number and followed by the localized message. The well-known modifiers from man:printf[3] are accepted:" ], "previous_source": "", "target": [ "" ], "id_hash": 4940873024932002616, "content_hash": 4940873024932002616, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:107", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 19, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 22, "source_unit": "https://translate-dev.freebsd.org/api/units/1191654/?format=api", "priority": 100, "id": 1407476, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=c49181d69b61bb38", "url": "https://translate-dev.freebsd.org/api/units/1407476/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.911962Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "15 \"File not found: %s\\n\"\n" ], "previous_source": "", "target": [ "" ], "id_hash": 2770752049576197426, "content_hash": 2770752049576197426, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:111", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 20, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 5, "source_unit": "https://translate-dev.freebsd.org/api/units/1065870/?format=api", "priority": 100, "id": 1407477, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=a673b04f1bacbd32", "url": "https://translate-dev.freebsd.org/api/units/1407477/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.915667Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The language catalog files have to be compiled into a binary form before they can be opened from the program. This conversion is done with the man:gencat[1] utility. Its first argument is the filename of the compiled catalog and its further arguments are the input catalogs. The localized messages can also be organized into more catalog files and then all of them can be processed with man:gencat[1]." ], "previous_source": "", "target": [ "" ], "id_hash": -1651082104620498826, "content_hash": -1651082104620498826, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:117", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 21, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 67, "source_unit": "https://translate-dev.freebsd.org/api/units/1191656/?format=api", "priority": 100, "id": 1407478, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=69162d92db174076", "url": "https://translate-dev.freebsd.org/api/units/1407478/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.920072Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Using the Catalog Files from the Source Code" ], "previous_source": "", "target": [ "" ], "id_hash": 6276329323174022731, "content_hash": 6276329323174022731, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:119", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 22, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1065874/?format=api", "priority": 100, "id": 1407479, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=d71a00441927ce4b", "url": "https://translate-dev.freebsd.org/api/units/1407479/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.924225Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Using the catalog files is simple. To use the related functions, [.filename]#nl_types.h# must be included. Before using a catalog, it has to be opened with man:catopen[3]. The function takes two arguments. The first parameter is the name of the installed and compiled catalog. Usually, the name of the program is used, such as grep. This name will be used when looking for the compiled catalog file. The man:catopen[3] call looks for this file in [.filename]#/usr/share/nls/locale/catname# and in [.filename]#/usr/local/share/nls/locale/catname#, where `locale` is the locale set and `catname` is the catalog name being discussed. The second parameter is a constant, which can have two values:" ], "previous_source": "", "target": [ "" ], "id_hash": -1696222006316995154, "content_hash": -1696222006316995154, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:130", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 23, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 103, "source_unit": "https://translate-dev.freebsd.org/api/units/1191658/?format=api", "priority": 100, "id": 1407480, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=6875cf127d466dae", "url": "https://translate-dev.freebsd.org/api/units/1407480/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.928393Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "`NL_CAT_LOCALE`, which means that the used catalog file will be based on `LC_MESSAGES`." ], "previous_source": "", "target": [ "" ], "id_hash": -8704221111686702844, "content_hash": -8704221111686702844, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:132", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 24, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1065878/?format=api", "priority": 100, "id": 1407481, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=073465040f755904", "url": "https://translate-dev.freebsd.org/api/units/1407481/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.935322Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "`0`, which means that `LANG` has to be used to open the proper catalog." ], "previous_source": "", "target": [ "" ], "id_hash": 4677832139741496242, "content_hash": 4677832139741496242, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:133", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 25, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1065880/?format=api", "priority": 100, "id": 1407482, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=c0eaff8c003283b2", "url": "https://translate-dev.freebsd.org/api/units/1407482/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.938920Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The man:catopen[3] call returns a catalog identifier of type `nl_catd`. Please refer to the manual page for a list of possible returned error codes." ], "previous_source": "", "target": [ "" ], "id_hash": 976467215921155625, "content_hash": 976467215921155625, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:136", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 26, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/1191660/?format=api", "priority": 100, "id": 1407483, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=8d8d1bc263cb8e29", "url": "https://translate-dev.freebsd.org/api/units/1407483/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.944334Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "After opening a catalog man:catgets[3] can be used to retrieve a message. The first parameter is the catalog identifier returned by man:catopen[3], the second one is the number of the set, the third one is the number of the messages, and the fourth one is a fallback message, which will be returned if the requested message cannot be retrieved from the catalog file." ], "previous_source": "", "target": [ "" ], "id_hash": -4787182018651347581, "content_hash": -4787182018651347581, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:139", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 27, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 63, "source_unit": "https://translate-dev.freebsd.org/api/units/1191662/?format=api", "priority": 100, "id": 1407484, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=3d9083514f262583", "url": "https://translate-dev.freebsd.org/api/units/1407484/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.949131Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "After using the catalog file, it must be closed by calling man:catclose[3], which has one argument, the catalog id." ], "previous_source": "", "target": [ "" ], "id_hash": 9173416191909270905, "content_hash": 9173416191909270905, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:141", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 28, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 19, "source_unit": "https://translate-dev.freebsd.org/api/units/1065886/?format=api", "priority": 100, "id": 1407485, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=ff4e856c77919579", "url": "https://translate-dev.freebsd.org/api/units/1407485/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.952986Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "A Practical Example" ], "previous_source": "", "target": [ "" ], "id_hash": 2775166672087378911, "content_hash": 2775166672087378911, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:143", "context": "", "note": "type: Title ===", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 29, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1065888/?format=api", "priority": 100, "id": 1407486, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=a6835f6282456bdf", "url": "https://translate-dev.freebsd.org/api/units/1407486/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.966967Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The following example will demonstrate an easy solution on how to use NLS catalogs in a flexible way." ], "previous_source": "", "target": [ "" ], "id_hash": -4713415630503870443, "content_hash": -4713415630503870443, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:146", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 30, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1065890/?format=api", "priority": 100, "id": 1407487, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=3e969574f10b0015", "url": "https://translate-dev.freebsd.org/api/units/1407487/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.978502Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "The below lines need to be put into a common header file of the program, which is included into all source files where localized messages are necessary:" ], "previous_source": "", "target": [ "" ], "id_hash": -1622685591551930160, "content_hash": -1622685591551930160, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:148", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 31, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1065892/?format=api", "priority": 100, "id": 1407488, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=697b100d456710d0", "url": "https://translate-dev.freebsd.org/api/units/1407488/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:14.982598Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#ifdef WITHOUT_NLS\n#define getstr(n)\t nlsstr[n]\n#else\n#include nl_types.h\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7099586863922426482, "content_hash": -7099586863922426482, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:155", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 32, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 8, "source_unit": "https://translate-dev.freebsd.org/api/units/1065894/?format=api", "priority": 100, "id": 1407489, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=1d79335ccbdfcd8e", "url": "https://translate-dev.freebsd.org/api/units/1407489/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.354024Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "extern nl_catd\t\t catalog;\n#define getstr(n)\t catgets(catalog, 1, n, nlsstr[n])\n#endif\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4930828965792542891, "content_hash": -4930828965792542891, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:159", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 33, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 10, "source_unit": "https://translate-dev.freebsd.org/api/units/1065896/?format=api", "priority": 100, "id": 1407490, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=3b922d2e25ba8f55", "url": "https://translate-dev.freebsd.org/api/units/1407490/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.357617Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "extern char\t\t*nlsstr[];\n" ], "previous_source": "", "target": [ "" ], "id_hash": 341815033120993838, "content_hash": 341815033120993838, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:161", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 34, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/1065898/?format=api", "priority": 100, "id": 1407491, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=84be5ef62c10b22e", "url": "https://translate-dev.freebsd.org/api/units/1407491/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.361101Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Next, put these lines into the global declaration part of the main source file:" ], "previous_source": "", "target": [ "" ], "id_hash": -1580117891114611731, "content_hash": -1580117891114611731, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:164", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 35, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1065900/?format=api", "priority": 100, "id": 1407492, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=6a124b265cdfcbed", "url": "https://translate-dev.freebsd.org/api/units/1407492/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.364651Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#ifndef WITHOUT_NLS\n#include nl_types.h\nnl_catd\t catalog;\n#endif\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7737741803141312373, "content_hash": 7737741803141312373, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:171", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 36, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1065902/?format=api", "priority": 100, "id": 1407493, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=eb61fb2c73edaf75", "url": "https://translate-dev.freebsd.org/api/units/1407493/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.368386Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "/*\n * Default messages to use when NLS is disabled or no catalog\n * is found.\n */\nchar *nlsstr[] = {\n \"\",\n/* 1*/ \"some random message\",\n/* 2*/ \"some other message\"\n};\n" ], "previous_source": "", "target": [ "" ], "id_hash": 7246543863699953244, "content_hash": 7246543863699953244, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:181", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 37, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 33, "source_unit": "https://translate-dev.freebsd.org/api/units/1065904/?format=api", "priority": 100, "id": 1407494, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=e490e5400d1f565c", "url": "https://translate-dev.freebsd.org/api/units/1407494/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.372532Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Next come the real code snippets, which open, read, and close the catalog:" ], "previous_source": "", "target": [ "" ], "id_hash": -3673522631417902207, "content_hash": -3673522631417902207, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:184", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 38, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 13, "source_unit": "https://translate-dev.freebsd.org/api/units/1065906/?format=api", "priority": 100, "id": 1407495, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=4d0506a13ffa4b81", "url": "https://translate-dev.freebsd.org/api/units/1407495/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.376716Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#ifndef WITHOUT_NLS\n\tcatalog = catopen(\"myapp\", NL_CAT_LOCALE);\n#endif\n" ], "previous_source": "", "target": [ "" ], "id_hash": 5900059363048687418, "content_hash": 5900059363048687418, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:190", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 39, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 7, "source_unit": "https://translate-dev.freebsd.org/api/units/1065908/?format=api", "priority": 100, "id": 1407496, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=d1e138bb183c073a", "url": "https://translate-dev.freebsd.org/api/units/1407496/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.380116Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "...\n" ], "previous_source": "", "target": [ "" ], "id_hash": -8316693151541419074, "content_hash": -8316693151541419074, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:192, documentation/content/en/books/developers-handbook/l10n/_index.adoc:196", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 40, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1065910/?format=api", "priority": 100, "id": 1407497, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=0c952ba4747323be", "url": "https://translate-dev.freebsd.org/api/units/1407497/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.383397Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "printf(getstr(1));\n" ], "previous_source": "", "target": [ "" ], "id_hash": -3497432291495638366, "content_hash": -3497432291495638366, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:194", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 41, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/1065912/?format=api", "priority": 100, "id": 1407498, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=4f769fdc6f6c0aa2", "url": "https://translate-dev.freebsd.org/api/units/1407498/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.386306Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#ifndef WITHOUT_NLS\n\tcatclose(catalog);\n#endif\n" ], "previous_source": "", "target": [ "" ], "id_hash": -371554824550937780, "content_hash": -371554824550937780, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:200", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 42, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1065914/?format=api", "priority": 100, "id": 1407499, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=7ad7f8db0c0f0b4c", "url": "https://translate-dev.freebsd.org/api/units/1407499/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.389185Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "Reducing Strings to Localize" ], "previous_source": "", "target": [ "" ], "id_hash": 9194801812066600204, "content_hash": 9194801812066600204, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:202", "context": "", "note": "type: Title ====", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 43, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/1065916/?format=api", "priority": 100, "id": 1407500, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=ff9a7f882c59050c", "url": "https://translate-dev.freebsd.org/api/units/1407500/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.391813Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "There is a good way of reducing the strings that need to be localized by using libc error messages. This is also useful to just avoid duplication and provide consistent error messages for the common errors that can be encountered by a great many of programs." ], "previous_source": "", "target": [ "" ], "id_hash": -7179973150193978797, "content_hash": -7179973150193978797, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:206", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 44, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 46, "source_unit": "https://translate-dev.freebsd.org/api/units/1191664/?format=api", "priority": 100, "id": 1407501, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=1c5b9c7605d87253", "url": "https://translate-dev.freebsd.org/api/units/1407501/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.394843Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "First, here is an example that does not use libc error messages:" ], "previous_source": "", "target": [ "" ], "id_hash": -3728345910601129182, "content_hash": -3728345910601129182, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:208", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 45, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 12, "source_unit": "https://translate-dev.freebsd.org/api/units/1065920/?format=api", "priority": 100, "id": 1407502, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=4c424125ded6e322", "url": "https://translate-dev.freebsd.org/api/units/1407502/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.410041Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#include err.h\n...\nif (!S_ISDIR(st.st_mode))\n\terrx(1, \"argument is not a directory\");\n" ], "previous_source": "", "target": [ "" ], "id_hash": -4022495812839005496, "content_hash": -4022495812839005496, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:215", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 46, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 11, "source_unit": "https://translate-dev.freebsd.org/api/units/1065922/?format=api", "priority": 100, "id": 1407503, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=482d395ecd3c22c8", "url": "https://translate-dev.freebsd.org/api/units/1407503/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.423036Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "This can be transformed to print an error message by reading `errno` and printing an error message accordingly:" ], "previous_source": "", "target": [ "" ], "id_hash": 5108164329204472614, "content_hash": 5108164329204472614, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:218", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 47, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/1065924/?format=api", "priority": 100, "id": 1407504, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=c6e3d864a88ddb26", "url": "https://translate-dev.freebsd.org/api/units/1407504/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.429145Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "#include err.h\n#include errno.h\n...\nif (!S_ISDIR(st.st_mode)) {\n\terrno = ENOTDIR;\n\terr(1, NULL);\n}\n" ], "previous_source": "", "target": [ "" ], "id_hash": -7217972803723047921, "content_hash": -7217972803723047921, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:228", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 48, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/1065926/?format=api", "priority": 100, "id": 1407505, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=1bd49bfa3ba84c0f", "url": "https://translate-dev.freebsd.org/api/units/1407505/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.438279Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "In this example, the custom string is eliminated, thus translators will have less work when localizing the program and users will see the usual \"Not a directory\" error message when they encounter this error. This message will probably seem more familiar to them. Please note that it was necessary to include [.filename]#errno.h# in order to directly access `errno`." ], "previous_source": "", "target": [ "" ], "id_hash": -9188047023561411723, "content_hash": -9188047023561411723, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:233", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 49, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 58, "source_unit": "https://translate-dev.freebsd.org/api/units/1191666/?format=api", "priority": 100, "id": 1407506, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=007d7fe995097375", "url": "https://translate-dev.freebsd.org/api/units/1407506/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.441733Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksdevelopers-handbookl10n_index/id/?format=api", "source": [ "It is worth to note that there are cases when `errno` is set automatically by a preceding call, so it is not necessary to set it explicitly:" ], "previous_source": "", "target": [ "" ], "id_hash": 2384032668224958019, "content_hash": 2384032668224958019, "location": "documentation/content/en/books/developers-handbook/l10n/_index.adoc:235", "context": "", "note": "type: Plain text", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 50, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 27, "source_unit": "https://translate-dev.freebsd.org/api/units/1065930/?format=api", "priority": 100, "id": 1407507, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksdevelopers-handbookl10n_index/id/?checksum=a115c914a279ae43", "url": "https://translate-dev.freebsd.org/api/units/1407507/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2022-03-09T18:38:15.445459Z" } ] }{ "count": 56, "next": "