Skip to content

Instantly share code, notes, and snippets.

@capnramses
Created March 12, 2017 14:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save capnramses/a6e81a05738e7b813cf1cd0213c517a3 to your computer and use it in GitHub Desktop.
Save capnramses/a6e81a05738e7b813cf1cd0213c517a3 to your computer and use it in GitHub Desktop.
these are all my text strings at the moment.
i store them like this per language:
wchar_t* g_english_strings[] = {
[TEXT_STRING_NAME_OF_LANG] = L"English",
[TEXT_STRING_NEW_GAME] = L"New Game",
[TEXT_STRING_QUIT] = L"Quit",
[TEXT_STRING_OPTIONS] = L"Options",
[TEXT_STRING_HOST] = L"Host Game",
[TEXT_STRING_JOIN] = L"Join Game",
[TEXT_STRING_CANCEL] = L"Cancel",
[TEXT_STRING_START] = L"Start",
[TEXT_STRING_IP_ADDRESS] = L"IP Address",
[TEXT_STRING_CONNECTING] = L"Connecting..."
};
@napasa
Copy link

napasa commented Mar 15, 2017

I think it may lost semantics if I directly translate English to Chinese by literal. SO replace "主机游戏" with "创建游戏" may be better when do a translation according to semantic, Is "host game" button used to create and begin a game ?

@capnramses
Copy link
Author

capnramses commented Jul 5, 2018

@napasa yes that's right - create & begin at the moment! i'll change it. thank you!

@ahmedalkabir
Copy link

ahmedalkabir commented Jul 5, 2018

wchar_t* g_english_strings[] = {
[TEXT_STRING_NAME_OF_LANG] = L"العربية",
[TEXT_STRING_NEW_GAME] = L"لعبة جديدة",
[TEXT_STRING_QUIT] = L"خروج من اللعبة",
[TEXT_STRING_OPTIONS] = L"خيارات",
[TEXT_STRING_HOST] = L"مضيف اللعبة",
[TEXT_STRING_JOIN] = L"دخول للعبة",
[TEXT_STRING_CANCEL] = L"إلغاء",
[TEXT_STRING_START] = L"بدء اللعبة",
[TEXT_STRING_IP_ADDRESS] = L"عنوان الأيبي",
[TEXT_STRING_CONNECTING] = L"جاري الأتصال..."
};

@ahmedalkabir
Copy link

ahmedalkabir commented Jul 7, 2018

@capnramses, I realized that I made mistake TEXT_STRING_JOIN so I edited you can check it in my last comment

@kerembaydogan
Copy link

wchar_t* g_english_strings[] = {
[TEXT_STRING_NAME_OF_LANG] = L"Türkçe",
[TEXT_STRING_NEW_GAME] = L"Yeni Oyun",
[TEXT_STRING_QUIT] = L"Çıkış",
[TEXT_STRING_OPTIONS] = L"Seçenekler",
[TEXT_STRING_HOST] = L"Oyun Kur",
[TEXT_STRING_JOIN] = L"Oyuna Katıl",
[TEXT_STRING_CANCEL] = L"İptal",
[TEXT_STRING_START] = L"Başlat",
[TEXT_STRING_IP_ADDRESS] = L"IP Adresi",
[TEXT_STRING_CONNECTING] = L"Bağlanıyor..."
};

@sblee518
Copy link

wchar_t* g_korean_strings[] = {
[TEXT_STRING_NAME_OF_LANG] = L"한글",
[TEXT_STRING_NEW_GAME] = L"새 게임",
[TEXT_STRING_QUIT] = L"나가기",
[TEXT_STRING_OPTIONS] = L"설정",
[TEXT_STRING_HOST] = L"게임 생성",
[TEXT_STRING_JOIN] = L"게임 참가",
[TEXT_STRING_CANCEL] = L"취소",
[TEXT_STRING_START] = L"시작",
[TEXT_STRING_IP_ADDRESS] = L"IP 주소",
[TEXT_STRING_CONNECTING] = L"연결중..."
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment