src/localztn.h
author Tampax86
Thu, 17 Jul 2025 22:03:19 -0400
changeset 0 b2e3aa63e96c
permissions -rw-r--r--
First commit

// localztn.h
// Devious Licks Localization

/*
Copyright (c) 2023 MCL Software

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/


Uint8 language = 0;
// 0 - US English
// 1 - Russian
// 2 - South American Spanish
// 3 - German
// 4 - Italian
// 5 - Polish
// 6 - Brazilian



char* getTranslationForObject(char object)
{
    if(language == 0)
    {
        switch(object)
        {
            case ' ':
                return "Floor";

            case 'D':
                return "Exit Door";

            case 'd':
                return "Classroom Door";

            case 'W':
                return "White Wall";

            case '#':
                return "Tiles";

            case '-':
                return "Stall Divider";

            case '|':
                return "Stall Divider";

            case '~':
                return "Fire Alarm Strobe Light";

            case '&':
                return "Hand Dryer";

            case '^':
                return "Desk/Chair Combo";

            case 'l':
                return "Table";

            case 'L':
                return "Table";

            case 'T':
                return "Fire Alarm Pull Station (T-Bar)";

            case 'S':
                return "Soap Dispenser";

            case 'F':
                return "Drinking Fountain";

            case '`':
                return "Toilet";

            case '=':
                return "Shelf";

            case '@':
                return "Fire Extinguisher";

            case 'G':
                return "Grass";
        }
        return "Undefined Object";
    }
}