Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Internationalization improvements

Aperta
#7,798 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

The issue points to specific files: missionbrief.cpp, hudtargetbox.cpp, ship.cpp, and hudtarget.cpp. Start by examining how XSTR macro and string concatenation work in the codebase. Look for existing internationalization patterns. For each listed case, determine how to restructure string handling to allow flexible word order. Testing changes will require building the project and checking display in different languages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement localization / translation

The following internationalization improvements would be much appreciated:

  1. Make the support ship name translatable.
  2. Change how the following strings are handled so that the word order can be different depending on the language:
    2.1. strcat_s(Closeup_icon->closeup_label, XSTR(" class", 434)); (in missionbrief.cpp) => in French, "class " is before the ship name.
    2.2. renderString(position[0] + Name_offsets[0], position[1] + Name_offsets[1], EG_TBOX_NAME, XSTR("debris", 348)); (in hudtargetbox.cpp) => in French, "debris" is before the ship name.
    2.3. sprintf(outbuf, XSTR("atk %s %s", 496), target_name, subsys_name); (in ship.cpp) => The problem with this one is that you can't switch the order of target_name and subsys_name. In French, it would be : "attaque " + subsys_name + target_name.
    2.4. renderString(x + fl2i(Auto_text_offsets[0] * scale), y + fl2i(Auto_text_offsets[1] * scale), XSTR("auto", 1463), scale, config); renderString(x + fl2i(Target_text_offsets[0] * scale), y +fl2i(Target_text_offsets[1] * scale), XSTR("target", 1465), scale, config); renderString(x + fl2i(Auto_text_offsets[0] * scale), y + fl2i(Auto_text_offsets[1] * scale), XSTR("auto", 1463), scale, config); renderString(x + fl2i(Speed_text_offsets[0] * scale), y + fl2i(Speed_text_offsets[1] * scale), XSTR("speed", 1464), scale, config); (in hudtarget.cpp) => here the problem is that currently you have to change the coordinates in hud_gauges.tbl to change the word order, so not a great internationalization practice. In this case it would be better to have "auto target" and "auto speed" instead of 4 distinct strings, but I don't know if the HUD can keep the same display then.
Lingua principale
C++
Stelle
488
Fork
184
Merge medio
2g 8h
PR unite (30g)
41

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scp-fs2open/fs2open.github.com

Tutte le issue di scp-fs2open/fs2open.github.com

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.