diff --git a/.gitignore b/.gitignore index 4f5b1bb..6b702cd 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,7 @@ temp /*.opensdf /ZRCola/locale/*.mo +/ZRColaCompile/locale/*.mo /output/locale/sl/ZRCola.mo +/output/locale/sl/ZRColaCompile.mo /output/locale/sl/wxExtend.mo diff --git a/ZRColaCompile/ZRColaCompile.props b/ZRColaCompile/ZRColaCompile.props new file mode 100644 index 0000000..b591021 --- /dev/null +++ b/ZRColaCompile/ZRColaCompile.props @@ -0,0 +1,18 @@ + + + + + + ..\output\$(Platform).$(Configuration)\ + + + + ..\lib\wxExtend\include;..\lib\libZRCola\include + _CONSOLE;%(PreprocessorDefinitions) + + + Console + + + + \ No newline at end of file diff --git a/ZRColaCompile/ZRColaCompile.rc b/ZRColaCompile/ZRColaCompile.rc new file mode 100644 index 0000000..bc25a8c Binary files /dev/null and b/ZRColaCompile/ZRColaCompile.rc differ diff --git a/ZRColaCompile/ZRColaCompile.vcxproj b/ZRColaCompile/ZRColaCompile.vcxproj new file mode 100644 index 0000000..f2e2af3 --- /dev/null +++ b/ZRColaCompile/ZRColaCompile.vcxproj @@ -0,0 +1,103 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4} + ZRColaCompile + + + + Application + true + Unicode + + + Application + true + Unicode + + + Application + false + true + Unicode + + + Application + false + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create + Create + Create + Create + + + + + + + + {3c61929e-7289-4101-8d0a-da22d6e1aea8} + + + + + + + + + + + + + \ No newline at end of file diff --git a/ZRColaCompile/ZRColaCompile.vcxproj.filters b/ZRColaCompile/ZRColaCompile.vcxproj.filters new file mode 100644 index 0000000..0ed9f35 --- /dev/null +++ b/ZRColaCompile/ZRColaCompile.vcxproj.filters @@ -0,0 +1,44 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {e43059ae-37ac-4b28-84fb-18d1b3972b30} + po;pot + + + + + Source Files + + + Source Files + + + + + Header Files + + + + + Resource Files + + + + + Resource Files\Localization + + + \ No newline at end of file diff --git a/ZRColaCompile/locale/sl.po b/ZRColaCompile/locale/sl.po new file mode 100644 index 0000000..ebe9acb --- /dev/null +++ b/ZRColaCompile/locale/sl.po @@ -0,0 +1,124 @@ +msgid "" +msgstr "" +"Project-Id-Version: ZRColaCompile\n" +"POT-Creation-Date: 2016-02-25 15:12+0100\n" +"PO-Revision-Date: 2016-02-25 15:13+0100\n" +"Last-Translator: Simon Rozman \n" +"Language-Team: Amebis, d. o. o., Kamnik \n" +"Language: sl_SI\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.6\n" +"X-Poedit-Basepath: ..\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: _\n" +"X-Poedit-SearchPath-0: .\n" + +#: main.cpp:44 +msgid "Show this help message" +msgstr "Pokaži to sporočilo pomoči" + +#: main.cpp:45 +msgid "input file" +msgstr "vhodna datoteka" + +#: main.cpp:46 +msgid "output file" +msgstr "izhodna datoteka" + +#: main.cpp:61 +msgid "Syntax error detected, aborting." +msgstr "Zaznana napaka v sintaksi, prekinjam." + +#~ msgid "Help was given, terminating." +#~ msgstr "Pomoč prikazana, zaključujem." + +#~ msgid "" +#~ "ZRCola keyboard shortcut Ctrl+Alt+Z could not be registered. Some " +#~ "functionality will not be available." +#~ msgstr "" +#~ "ZRColine bližnjice na tipkovnici Ctrl+Alt+Z ni mogoče registrirati. Nekaj " +#~ "funkcionalnosti ne bo na voljo." + +#~ msgid "Warning" +#~ msgstr "Opozorilo" + +#~ msgid "" +#~ "ZRCola keyboard shortcut Ctrl+Alt+Shift+Z could not be registered. Some " +#~ "functionality will not be available." +#~ msgstr "" +#~ "ZRColine bližnjice na tipkovnici Ctrl+Alt+Shift+Z ni mogoče registrirati. " +#~ "Nekaj funkcionalnosti ne bo na voljo." + +#~ msgid "" +#~ "ZRCola v%s\n" +#~ "Copyright 2015-%s Amebis" +#~ msgstr "" +#~ "ZRCola v%s\n" +#~ "Vse pravice pridržane 2015-%s Amebis" + +#~ msgid "About ZRCola" +#~ msgstr "O ZRColi" + +#~ msgid "E&xit" +#~ msgstr "I&zhod" + +#~ msgid "&File" +#~ msgstr "&Datoteka" + +#~ msgid "Grave\t&7" +#~ msgstr "Krativec\t&7" + +#~ msgid "Acute\t&9" +#~ msgstr "Ostrivec\t&9" + +#~ msgid "Circumflex\t&3" +#~ msgstr "Cirkumfleks\t&3" + +#~ msgid "Inverted &breve" +#~ msgstr "O&brnjen polkrog" + +#~ msgid "&Accents" +#~ msgstr "N&aglasi" + +#~ msgid "&About" +#~ msgstr "O progr&amu" + +#~ msgid "&Help" +#~ msgstr "&Pomoč" + +#~ msgid "ZRCola" +#~ msgstr "ZRCola" + +#~ msgid "" +#~ "There is already an auto hidden bar on this edge.\n" +#~ "Only one auto hidden bar is allowed on each edge.\n" +#~ "Auto-hide feature is now off." +#~ msgstr "" +#~ "Ob tem robu je že samodejno skrita pasica.\n" +#~ "Na vsakem robu je lahko samo ena samodejno skrita pasica.\n" +#~ "Samodejno skrivanje je zdaj izklopljeno." + +#~ msgid "Hello World" +#~ msgstr "Zdravo svet" + +#~ msgid "&Hello...\tCtrl+H" +#~ msgstr "&Pozdrav ...\tCtrl+H" + +#~ msgid "Help string shown in status bar for this menu item" +#~ msgstr "Niz s pomočjo prikazan v statusni vrstici za to točko menija" + +#~ msgid "This is a wxWidgets' Hello world sample" +#~ msgstr "To je primer Zdravo svet v wxWidgets" + +#~ msgid "About Hello World" +#~ msgstr "O Zdravo svet" + +#~ msgid "Hello world from wxWidgets!" +#~ msgstr "Zdravo svet iz wxWidgets!" + +#~ msgid "Welcome to wxWidgets!" +#~ msgstr "Dobrodošli v wxWidgets!" diff --git a/ZRColaCompile/main.cpp b/ZRColaCompile/main.cpp new file mode 100644 index 0000000..f14b43d --- /dev/null +++ b/ZRColaCompile/main.cpp @@ -0,0 +1,66 @@ +/* + Copyright 2015-2016 Amebis + + This file is part of ZRCola. + + ZRCola is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + ZRCola is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with ZRCola. If not, see . +*/ + +#include "stdafx.h" + + +int _tmain(int argc, _TCHAR *argv[]) +{ + wxApp::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, "program"); + + wxInitializer initializer; + if (!initializer) { + _ftprintf(stderr, wxT("Failed to initialize the wxWidgets library, aborting.\n")); + return -1; + } + + wxLocale locale; + if (wxLocale::IsAvailable(wxLANGUAGE_SLOVENIAN)) { + wxString sPath(wxPathOnly(argv[0])); + sPath << wxT("\\..\\locale"); + locale.AddCatalogLookupPathPrefix(sPath); + wxVERIFY(locale.Init(wxLANGUAGE_SLOVENIAN)); + wxVERIFY(locale.AddCatalog(wxT("ZRColaCompile"))); + } + + static const wxCmdLineEntryDesc cmdLineDesc[] = + { + { wxCMD_LINE_SWITCH, "h" , "help", _("Show this help message"), wxCMD_LINE_VAL_NONE , wxCMD_LINE_OPTION_HELP }, + { wxCMD_LINE_PARAM , NULL, NULL , _("input file") , wxCMD_LINE_VAL_STRING, wxCMD_LINE_OPTION_MANDATORY }, + { wxCMD_LINE_PARAM , NULL, NULL , _("output file") , wxCMD_LINE_VAL_STRING, wxCMD_LINE_OPTION_MANDATORY }, + + { wxCMD_LINE_NONE } + }; + wxCmdLineParser parser(cmdLineDesc, argc, argv); + switch (parser.Parse()) { + case -1: + // Help was given, terminating. + return 0; + + case 0: + // everything is ok; proceed + break; + + default: + wxLogMessage(_("Syntax error detected, aborting.")); + return -1; + } + + return 0; +} diff --git a/ZRColaCompile/stdafx.cpp b/ZRColaCompile/stdafx.cpp new file mode 100644 index 0000000..ac111f1 --- /dev/null +++ b/ZRColaCompile/stdafx.cpp @@ -0,0 +1,20 @@ +/* + Copyright 2015-2016 Amebis + + This file is part of ZRCola. + + ZRCola is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + ZRCola is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with ZRCola. If not, see . +*/ + +#include "stdafx.h" diff --git a/ZRColaCompile/stdafx.h b/ZRColaCompile/stdafx.h new file mode 100644 index 0000000..7efcf36 --- /dev/null +++ b/ZRColaCompile/stdafx.h @@ -0,0 +1,30 @@ +/* + Copyright 2015-2016 Amebis + + This file is part of ZRCola. + + ZRCola is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + ZRCola is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with ZRCola. If not, see . +*/ + +#pragma once + +#include "../include/zrcola.h" + +#include +#include +#include + +#include + +#include diff --git a/ZRColaUtils.sln b/ZRColaUtils.sln new file mode 100644 index 0000000..22195c8 --- /dev/null +++ b/ZRColaUtils.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{A7D28E0C-BB96-444D-AAB0-F22A6483FE5F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libZRCola", "lib\libZRCola\build\libZRCola.vcxproj", "{3C61929E-7289-4101-8D0A-DA22D6E1AEA8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{ECE3F336-FFD2-41EE-AD8F-17BD7472BDCB}" + ProjectSection(SolutionItems) = preProject + include\zrcola.h = include\zrcola.h + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZRColaCompile", "ZRColaCompile\ZRColaCompile.vcxproj", "{87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Debug|Win32.ActiveCfg = Debug|Win32 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Debug|Win32.Build.0 = Debug|Win32 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Debug|x64.ActiveCfg = Debug|x64 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Debug|x64.Build.0 = Debug|x64 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Release|Win32.ActiveCfg = Release|Win32 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Release|Win32.Build.0 = Release|Win32 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Release|x64.ActiveCfg = Release|x64 + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8}.Release|x64.Build.0 = Release|x64 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Debug|Win32.ActiveCfg = Debug|Win32 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Debug|Win32.Build.0 = Debug|Win32 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Debug|x64.ActiveCfg = Debug|x64 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Debug|x64.Build.0 = Debug|x64 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Release|Win32.ActiveCfg = Release|Win32 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Release|Win32.Build.0 = Release|Win32 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Release|x64.ActiveCfg = Release|x64 + {87A3ADEC-1BE4-42E4-92B8-B742F3D21BC4}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {3C61929E-7289-4101-8D0A-DA22D6E1AEA8} = {A7D28E0C-BB96-444D-AAB0-F22A6483FE5F} + EndGlobalSection +EndGlobal