Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. i18n

[Golang] Unmarshal UTF-16 XML

July 27, 2020

How to parse a UTF-16 XML file in Go.

 read more »

[Golang] Remove Last Character of UTF-8 String

July 14, 2020

Remove last character of UTF-8 string via utf8.DecodeLastRuneInString in Go.

 read more »

[Golang] Auto-Detect and Convert Encoding of HTML to UTF-8

October 27, 2018

Given an URL, auto-detect and convert the encoding of the HTML document to UTF-8 if it is not UTF-8 encoded in Go.

 read more »

[Golang] Determine Encoding of HTML Document

October 26, 2018

Given an URL, determine the encoding of the HTML document in Go using golang.org/x/net/html and golang.org/x/text packages.

 read more »

[Golang] Reverse a String

October 25, 2018

Reverse a string using for or range keyword in Go.

 read more »

[Golang] Convert Chinese Characters in String to Pinyin

October 13, 2018

Given a string with Chinese characters, convert the Chinese characters in the string to Pinyin (romanization system for Chinese) in Go.

 read more »

[Golang] Check If The Rune is Chinese Character

October 11, 2018

Given a rune value, check if the rune is a Chinese character.

 read more »

[Golang] Calculate String Length

January 24, 2018

Calculate the length of string (UTF-8) in Go. Iterate over the UTF-8 string by for or range keyword.

 read more »

Detect Browser Language Preference in Go

December 26, 2017

Know which language(s) users prefer on browsers in Go/GopherJS.

 read more »

[Pelican] Localize Theme via Jinja2 Custom Filter

January 12, 2017

Pelican static site generator - Localize theme with i18n_subsites plugin via custom Jinja2 filter. Implementation of gettext-like filter.

 read more »

[Pelican] Get Single Page or Article by slug Metadata in Theme

January 08, 2017

Pelican static site generator - Get a single page or article by slug metadata in theme.

 read more »

[Pelican] Translate String According to Default Language in Theme

January 07, 2017

Pelican static site generator - Support multilingual in Pelican theme. Translate strings according to default language of settings in the theme. (implement macro gettext)

 read more »

[AngularJS] i18n Directive

May 29, 2016

Client side gettext-like Internationalization (i18n) via AngularJS Directives.

 read more »

[AngularJS] gettext-like i18n Solution

May 28, 2016

Client side gettext-like Internationalization (i18n) via AngularJS.

 read more »

[Golang] Get UTF-8 String Width

March 23, 2016

Get UTF-8 string width (width of English letter is 1, width of CJK character is 2) in Go programming language.

 read more »

[Makefile] Convert Traditional Chinese PO file to Simplified Chinese via OpenCC

March 12, 2016

Convert Traditional Chinese PO file to Simplified Chinese via OpenCC and sed in Makefile.

 read more »

[Golang] Convert Traditional Chinese PO file to Simplified Chinese

March 05, 2016

Automatically convert Traditional Chinese (zh_TW) PO file to Simplified Chinese (zh_CN) by OpenCC and Go programming language.

 read more »

[Golang] Iterate Over UTF-8 Strings (non-ASCII strings)

February 03, 2016

Iterate over UTF-8 or non-ASCII strings in Go. Iterations by for or range keywords.

 read more »

[Golang] gettext Function on Frontend (Browser) by GopherJS

January 28, 2016

Implement gettext function on front-end (browsers) by GopherJS. The gettext function translates a text string into the user's native language.

 read more »

[Golang] Convert PO file to JSON Format

January 27, 2016

Convert PO files to JSON format via Go. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Python] Convert PO file to JSON Format

January 26, 2016

Convert PO files to JSON format via Python. The data of JSON format can be passed to front-end by web servers to translate a text string into the user's native language. You can use the JSON data to implement gettext function in browsers.

 read more »

[Golang] Access HTTP Request Header (Accept-Language) by JSONP

January 24, 2016

Run Golang program in your browser by GopherJS. Access Accept-Language field in HTTP Request Header by JSONP to detect browser language preference (user locale).

 read more »

[Golang] Detect Browser Language Preference by window.navigator.language

January 24, 2016

Run Golang program in your browser by GopherJS. Access window.navigator.language of NavigatorLanguage API to detect browser language preference (user locale).

 read more »

xgettext Extract Translatable Strings From Golang html/template

January 19, 2016

Use xgettext (one of GNU gettext utilities) to extract translatable strings from HTML templates of Go html/template.

 read more »

i18n Golang Web Application by gettext and html/template

January 19, 2016

i18n (Internationalization) Go web applications by GNU gettext tools and html/template. Use PO and MO files generated by gettext in Golang web application to render HTML of specific languages by html/template.

 read more »

i18n Python Web Application by gettext and Jinja2

January 17, 2016

i18n (Internationalization) Python web applications by GNU gettext tools and Jinja2. Use PO and MO files generated by gettext in Python web application to render HTML of specific languages by Jinja2 template engine.

 read more »

[Python] Internationalization (i18n) of Python Application by GNU gettext Tools

January 14, 2016

Internationalization (i18n) of Python applications by GNU gettext tools. This post shows how to use PO and MO files in Python.

 read more »

[Golang] Internationalization (i18n) of Go Application by GNU gettext Tools

January 08, 2016

Internationalization (i18n) of Go applications by GNU gettext tools. This post shows how to use PO and MO files in Golang.

 read more »

[Python] Automatically Convert Traditional Chinese PO file to Simplified Chinese

January 08, 2016

Automatically convert Traditional Chinese (zh_TW) PO file to Simplified Chinese (zh_CN) by OpenCC and Python programming language.

 read more »

Internationalization (i18n) of Web Application by GNU gettext Tools

January 07, 2016

Support multiple languages in your (web) applications, by GNU gettext tools, which include xgettext, msginit, msgmerge, and msgfmt.

 read more »

[Python] Use Regular Expression to Find Strings Marked For Internationalization (i18n)

January 01, 2016

Use regular expression in Python to search and find strings marked for i18n (Internationalization)

 read more »

Internationalization and Localization of Google App Engine Python Webapp Using webapp2 and Jinja2

April 12, 2015

i18n and L10n of Google App Engine Python web application, with webapp2, Jinja2, Babel, and pytz.

 read more »
Powered by Github Pages, Pelican, pyScss.