Coder Social home page Coder Social logo

pr-localization's Introduction

Project Reality: BF2 Community Localization

https://github.com/realitymod/pr-localization

This repository is for openly maintaining the Project Reality: BF2 localization files for all the different languages.

For community contributions, please make a make a fork and submit a pull request.

Editing guide

We recommend contributors use Notepad++ to edit the .utxt files.

Example

It is helpful to have View > Show Symbol > Show White Space and TAB enabled in Notepad++.

Testing translations

First, run check-localization.exe which will check for some common mistakes made in localization files. Fix any errors it detects, otherwise continue to testing ingame.

To test your changes in the current version of PR:BF2, just edit the necessary files located in:

<PR Install Dir>/mods/pr/localization/<language>

Please make sure you have tested your changes both in the launcher and ingame, and have confirmed they are working correctly prior to submitting a pull request!

If there are characters missing, or your text does not display, it is most likely an issue with the font used. See below for more information regarding custom fonts.

Note: Change the language used in PRLauncher > Options > Global > Language

What not to translate

In pr.utxt:

  • HUD_TEAMNAME_ENGLISH_* should not be translated.
  • HUD_TEXT_MENU_REINFORCEMENTS should not be translated.
  • HUD_TEXT_MENU_CACHES should not be translated.
  • HUD_TEXT_MENU_ENEMY_ASSETS should not be translated.
  • HUD_TEXT_MENU_ASSETS_* should not be translated.

In prmaps.utxt:

  • HUD_LEVELNAME_* should not be translated.
  • cpname_* should not be translated.
  • This means that the only strings that should be translated are GAMEMODE_DESCRIPTION_.

prvehicles.utxt should not be translated at all, as it is an automatically generated file.

Handling updates

When a new string is added in English, it will automatically be committed to the rest of the languages in English. The contributor then translates from English to their chosen language.

If an English string is modified, it will not be updated in the other languages. It is up to the contributor to stay up to date with changes made to English to ensure they don't become out of date.

If translation starts on a currently un-translated language, it is recommended to start with the English files instead of existing translations, as they may be out of date because to the above paragraph.

Custom fonts

If you require custom font support, please make a new thread in the PR:BF2 Community Modding forum and we will guide you on what is required for your fonts to be supported in the launcher and/or ingame.

Contributors

pr-localization's People

Contributors

wouterjansen avatar arab-pr avatar darekdeo avatar mats391 avatar ancientman2002 avatar art567 avatar gavin-ryde-bisimulations avatar leg-ion avatar prstrategos avatar rhin0c3r0s avatar sine avatar sucharmistrz avatar jerro1105 avatar ltakeshi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.