Translating

Translating pgn4web user interface

The pgn4web package and the associated plugins/extensions use the English language for the user interface in few key locations. At the moment, pgn4web is not really designed to facilitate a translation in another language. On user request, here are few pointers to user interface text in the English language that you might want to translate in order to display the pgn4web chessboard in another language.

The translation requires modifications to the core file pgn4web.js, see the following (non comprehensive) list of areas that currently show text in English:

  • the backward, play/stop and forward buttons have text tooltips
  • the game selector dropdown menu has a text tooltip
  • the search button and prompt have text and a text tooltip
  • the side to move indicator is a text
  • unless chess informant symbols are enabled, by default PGN NAG comments are translated to the corresponding text
  • alert messages (see myAlert() function) are text
  • square shortcuts tooltips (see configBoardShrortcut() function) are text
  • alert and confirm dialog boxes (see alert() function), used mainly for debugging, use text

Using non English characters in the PGN data

pgn4web should accept and display special characters in the PGN data, such as symbols (such as ½ ¿ ß) and accented letters (such as â è õ ü), provided that the PGN file is saved in unicode UTF-8 format. See the PGN support page if your PGN files are encoded in a different format.

Please note that the board generator tool does not accept special characters outside the 255 characters ascii set. Rejected characters are replaced with stars * This might affect some non English text and names. An undocumented/unsupported workaround, applicable in given circumstances, is discussed in the comments to issue 70.


Related

Tickets: #70
Wiki: BoardWidget_generator
Wiki: Index
Wiki: PGN_Support

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.