From 34e7344dc34b49d0a44d82ddfa080a61ea78db12 Mon Sep 17 00:00:00 2001 From: mb Date: Sat, 29 Apr 2017 12:56:57 +0200 Subject: [PATCH 1/7] messages pl --- locale/pl/LC_MESSAGES/messages.po | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 locale/pl/LC_MESSAGES/messages.po diff --git a/locale/pl/LC_MESSAGES/messages.po b/locale/pl/LC_MESSAGES/messages.po new file mode 100644 index 000000000..eb146ca13 --- /dev/null +++ b/locale/pl/LC_MESSAGES/messages.po @@ -0,0 +1,46 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-04-28 21:36+0200\n" +"PO-Revision-Date: 2017-04-28 22:44+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: pl\n" +"X-Generator: Poedit 2.0.1\n" + +#: ActivityDataGrid.tpl:14 +msgid "Activities" +msgstr "DziaƂania" + +#: Search.tpl:60 Search.tpl:66 +msgid "activityURL" +msgstr "" + +#: Search.tpl:60 Search.tpl:66 +msgid "itemInfo" +msgstr "" + +#: Search.tpl:61 +msgid "firstName" +msgstr "" + +#: Search.tpl:67 +msgid "lastName" +msgstr "" + +#: Search.tpl:76 +msgid "typeDescription" +msgstr "" + +#: Search.tpl:84 +msgid "enteredByAbbrName" +msgstr "" From 214bacd12a3c1893e82ac119e326d5a63543f07b Mon Sep 17 00:00:00 2001 From: mb Date: Thu, 4 May 2017 22:41:22 +0200 Subject: [PATCH 2/7] i18n --- .gitignore | 17 +- .htaccess | 3 + build.properties | 5 + build.xml | 124 + careers/index.php | 80 +- config.php | 45 +- index.php | 11 + installwizard.php | 337 +- js/calendarDateInput.js | 1901 ++--- js/dataGridFilters.js | 18 +- js/listEditor.js | 30 +- js/lists.js | 30 +- js/questionnaire.js | 34 +- js/suggest.js | 2 +- lib/Calendar.php | 24 +- lib/Candidates.php | 64 +- lib/Companies.php | 34 +- lib/Contacts.php | 42 +- lib/DataGrid.php | 52 +- lib/ExtraFields.php | 12 +- lib/JobOrders.php | 58 +- lib/Session.php | 17 + lib/TemplateUtility.php | 34 +- lib/Users.php | 34 + lib/php-gettext/AUTHORS | 3 + lib/php-gettext/COPYING | 340 + lib/php-gettext/Makefile | 41 + lib/php-gettext/README | 161 + lib/php-gettext/examples/index.php | 27 + .../locale/de_CH/LC_MESSAGES/messages.mo | Bin 0 -> 585 bytes .../locale/de_CH/LC_MESSAGES/messages.po | 30 + .../locale/sr_CS/LC_MESSAGES/messages.mo | Bin 0 -> 829 bytes .../locale/sr_CS/LC_MESSAGES/messages.po | 30 + lib/php-gettext/examples/pigs_dropin.php | 89 + lib/php-gettext/examples/pigs_fallback.php | 88 + lib/php-gettext/examples/update | 14 + lib/php-gettext/gettext.inc | 539 ++ lib/php-gettext/gettext.php | 436 + lib/php-gettext/streams.php | 167 + lib/php-gettext/tests/LocalesTest.php | 74 + lib/php-gettext/tests/ParsingTest.php | 89 + local/console/win.txt | 1 + locale/en/flag.png | Bin 0 -> 461 bytes locale/files.lst | 1 + locale/i18n.sql | 1 + locale/lang.php | 31 + locale/messages.pot | 6825 ++++++++++++++++ locale/pl/LC_MESSAGES/messages.mo | Bin 0 -> 95834 bytes locale/pl/LC_MESSAGES/messages.po | 7233 ++++++++++++++++- locale/pl/flag.png | Bin 0 -> 227 bytes main.css | 2738 +++---- modules/activity/ActivityDataGrid.tpl | 10 +- modules/activity/ActivityUI.php | 22 +- modules/activity/Search.tpl | 22 +- modules/activity/dataGrids.php | 28 +- modules/activity/validator.js | 7 +- modules/calendar/Calendar.js | 68 +- modules/calendar/Calendar.tpl | 210 +- modules/calendar/CalendarUI.js | 52 +- modules/calendar/CalendarUI.php | 70 +- modules/calendar/Error.tpl | 8 +- modules/calendar/tasks/Reminders.php | 22 +- modules/calendar/validator.js | 12 +- modules/candidates/Add.tpl | 116 +- .../AddActivityChangeStatusModal.tpl | 108 +- .../candidates/AssignCandidateTagModal.tpl | 10 +- modules/candidates/Candidates.tpl | 14 +- modules/candidates/CandidatesUI.php | 199 +- modules/candidates/ConsiderSearchModal.tpl | 74 +- modules/candidates/CreateAttachmentModal.tpl | 16 +- .../candidates/CreateImageAttachmentModal.tpl | 14 +- modules/candidates/Edit.tpl | 116 +- modules/candidates/Error.tpl | 6 +- modules/candidates/ErrorModal.tpl | 6 +- modules/candidates/HotList.tpl | 14 +- modules/candidates/Questionnaire.tpl | 14 +- modules/candidates/ResumeView.tpl | 6 +- modules/candidates/Search.tpl | 22 +- modules/candidates/SendEmail.tpl | 18 +- modules/candidates/Show.tpl | 154 +- modules/candidates/activityvalidator.js | 9 +- modules/candidates/dataGrids.php | 52 +- modules/candidates/quickAction-candidates.js | 7 +- modules/candidates/validator.js | 37 +- modules/companies/Add.tpl | 52 +- modules/companies/Companies.tpl | 20 +- modules/companies/CompaniesUI.php | 74 +- modules/companies/CreateAttachmentModal.tpl | 12 +- modules/companies/Edit.tpl | 60 +- modules/companies/Error.tpl | 8 +- modules/companies/ErrorModal.tpl | 8 +- modules/companies/Search.tpl | 34 +- modules/companies/Show.tpl | 116 +- modules/companies/dataGrids.php | 44 +- modules/companies/validator.js | 23 +- modules/contacts/Add.tpl | 58 +- .../AddActivityScheduleEventModal.tpl | 68 +- modules/contacts/ColdCallList.tpl | 18 +- modules/contacts/Contacts.tpl | 20 +- modules/contacts/ContactsUI.php | 94 +- modules/contacts/Edit.tpl | 70 +- modules/contacts/Error.tpl | 8 +- modules/contacts/ErrorModal.tpl | 8 +- modules/contacts/Search.tpl | 36 +- modules/contacts/Show.tpl | 96 +- modules/contacts/dataGrids.php | 44 +- modules/contacts/validator.js | 25 +- modules/home/Error.tpl | 4 +- modules/home/FriendlyError.tpl | 8 +- modules/home/Home.tpl | 26 +- modules/home/HomeUI.php | 32 +- modules/home/SearchEverything.tpl | 82 +- modules/home/dataGrids.php | 32 +- modules/import/Import.tpl | 91 +- modules/import/Import1.tpl | 33 +- modules/import/Import2.tpl | 42 +- modules/import/ImportUI.php | 208 +- modules/install/notinstalled.php | 11 +- modules/joborders/.htaccess | 3 + modules/joborders/Add.tpl | 88 +- modules/joborders/AddModalPopup.tpl | 14 +- modules/joborders/ConsiderSearchModal.tpl | 34 +- modules/joborders/CreateAttachmentModal.tpl | 12 +- modules/joborders/Edit.tpl | 84 +- modules/joborders/Error.tpl | 6 +- modules/joborders/ErrorModal.tpl | 6 +- modules/joborders/JobOrders.tpl | 37 +- modules/joborders/JobOrdersUI.php | 142 +- modules/joborders/Search.tpl | 38 +- modules/joborders/Show.tpl | 104 +- modules/joborders/dataGrids.php | 56 +- modules/joborders/validator.js | 42 +- modules/lists/List.tpl | 10 +- modules/lists/Lists.tpl | 14 +- modules/lists/ListsUI.php | 10 +- modules/lists/QuickActionAddToListModal.tpl | 26 +- modules/lists/ajax/addToLists.php | 10 +- modules/lists/ajax/deleteList.php | 2 +- modules/lists/ajax/editListName.php | 4 +- modules/lists/ajax/newList.php | 4 +- modules/lists/dataGrids.php | 48 +- modules/login/Login.tpl | 32 +- modules/login/validator.js | 11 +- modules/reports/EEOReport.tpl | 30 +- modules/reports/Error.tpl | 6 +- modules/reports/Reports.tpl | 142 +- modules/reports/ReportsUI.php | 2 +- modules/settings/AddUser.tpl | 52 +- modules/settings/Administration.tpl | 88 +- modules/settings/Backup.tpl | 25 +- .../settings/CareerPortalQuestionnaire.tpl | 128 +- modules/settings/CareerPortalSettings.tpl | 104 +- modules/settings/CareerPortalTemplateEdit.tpl | 130 +- modules/settings/ChangePassword.tpl | 24 +- modules/settings/CustomizeCalendar.tpl | 28 +- modules/settings/CustomizeExtraFields.tpl | 46 +- modules/settings/EEOEOCSettings.tpl | 18 +- modules/settings/EmailSettings.tpl | 18 +- modules/settings/EmailTemplates.tpl | 16 +- modules/settings/Localization.tpl | 16 +- modules/settings/MyProfile.tpl | 40 +- modules/settings/NewVersionCheck.tpl | 20 +- modules/settings/Passwords.tpl | 10 +- modules/settings/SettingsUI.php | 40 +- modules/settings/ShowUser.tpl | 48 +- modules/settings/SiteName.tpl | 14 +- modules/settings/SystemInformation.tpl | 24 +- modules/settings/Users.tpl | 18 +- modules/settings/ajax/backup.php | 46 +- modules/settings/tags.tpl | 18 +- ... Bisz Curriculum Vitae EU Format_Copy1.doc | Bin 0 -> 90112 bytes ... Bisz Curriculum Vitae EU Format_Copy2.doc | Bin 0 -> 90112 bytes .../Marek Bisz Curriculum Vitae EU Format.doc | Bin 0 -> 90112 bytes ... Bisz Curriculum Vitae EU Format_Copy1.doc | Bin 0 -> 90112 bytes 174 files changed, 21768 insertions(+), 5294 deletions(-) create mode 100644 .htaccess create mode 100644 build.properties create mode 100644 build.xml create mode 100644 lib/php-gettext/AUTHORS create mode 100644 lib/php-gettext/COPYING create mode 100644 lib/php-gettext/Makefile create mode 100644 lib/php-gettext/README create mode 100644 lib/php-gettext/examples/index.php create mode 100644 lib/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.mo create mode 100644 lib/php-gettext/examples/locale/de_CH/LC_MESSAGES/messages.po create mode 100644 lib/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.mo create mode 100644 lib/php-gettext/examples/locale/sr_CS/LC_MESSAGES/messages.po create mode 100644 lib/php-gettext/examples/pigs_dropin.php create mode 100644 lib/php-gettext/examples/pigs_fallback.php create mode 100644 lib/php-gettext/examples/update create mode 100644 lib/php-gettext/gettext.inc create mode 100644 lib/php-gettext/gettext.php create mode 100644 lib/php-gettext/streams.php create mode 100644 lib/php-gettext/tests/LocalesTest.php create mode 100644 lib/php-gettext/tests/ParsingTest.php create mode 100644 local/console/win.txt create mode 100644 locale/en/flag.png create mode 100644 locale/files.lst create mode 100644 locale/i18n.sql create mode 100644 locale/lang.php create mode 100644 locale/messages.pot create mode 100644 locale/pl/LC_MESSAGES/messages.mo create mode 100644 locale/pl/flag.png create mode 100644 modules/joborders/.htaccess create mode 100644 upload/addcandidate/Marek Bisz Curriculum Vitae EU Format_Copy1.doc create mode 100644 upload/addcandidate/Marek Bisz Curriculum Vitae EU Format_Copy2.doc create mode 100644 upload/careerportaladd/Marek Bisz Curriculum Vitae EU Format.doc create mode 100644 upload/careerportaladd/Marek Bisz Curriculum Vitae EU Format_Copy1.doc diff --git a/.gitignore b/.gitignore index e6e6c8329..e80feecec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ -INSTALL_BLOCK -.buildpath -.project -.settings/* -docker/data/* -docker/persist/* -vendor/* -attachments/* +INSTALL_BLOCK +.buildpath +.project +.settings/* +docker/data/* +docker/persist/* +vendor/* +attachments/* +/distr/ diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..a2b3d6ab3 --- /dev/null +++ b/.htaccess @@ -0,0 +1,3 @@ + +AddHandler application/x-httpd-php .js + diff --git a/build.properties b/build.properties new file mode 100644 index 000000000..b16ba1549 --- /dev/null +++ b/build.properties @@ -0,0 +1,5 @@ +version = ${env.ATS_LOCAL_VERSION} +envName = ${env.ATS_ENV_NAME} +workspace.antResources.dir = ${env.AMW_WORKSPACE_DIR} +workspace.ats.dir = ${env.ATS_WORKSPACE_DIR} + diff --git a/build.xml b/build.xml new file mode 100644 index 000000000..4ceabfa75 --- /dev/null +++ b/build.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/careers/index.php b/careers/index.php index 41ee15372..db50e491b 100644 --- a/careers/index.php +++ b/careers/index.php @@ -1,40 +1,40 @@ - + diff --git a/config.php b/config.php index b83496470..51a4a6cfe 100755 --- a/config.php +++ b/config.php @@ -31,10 +31,10 @@ define('LICENSE_KEY','3163GQ-54ISGW-14E4SHD-ES9ICL-X02DTG-GYRSQ6'); /* Database configuration. */ -define('DATABASE_USER', 'cats'); -define('DATABASE_PASS', 'password'); +define('DATABASE_USER', 'demoats'); +define('DATABASE_PASS', 'demoats'); define('DATABASE_HOST', 'localhost'); -define('DATABASE_NAME', 'cats_dev'); +define('DATABASE_NAME', 'demoats'); /* Authentication Configuration * Options are sql, ldap, sql+ldap @@ -53,8 +53,8 @@ * 'C:\\antiword\\antiword.exe'. Windows Antiword will have problems locating * mapping files if you install it anywhere but C:\antiword\. */ -define('ANTIWORD_PATH', "\\path\\to\\antiword"); -define('ANTIWORD_MAP', '8859-1.txt'); +define('ANTIWORD_PATH', "C:\\antiword\\antiword.exe"); +define('ANTIWORD_MAP', 'cp1250.txt'); /* XPDF / pdftotext settings. Remember to use double backslashes (\) to represent * one backslash (\). @@ -78,7 +78,7 @@ * web server. The default should be fine for most systems. Remember to * use double backslashes (\) to represent one backslash (\) on Windows. */ -define('CATS_TEMP_DIR', './temp'); +define('CATS_TEMP_DIR', 'C:/temp'); /* If User Details and Login Activity pages in the settings module are * unbearably slow, set this to false. @@ -168,10 +168,10 @@ define('FORGOT_PASSWORD_BODY', 'You recently requested that your OpenCATS: Applicant Tracking System password be sent to you. Your current password is %s.'); /* Is this a demo site? */ -define('ENABLE_DEMO_MODE', false); +define('ENABLE_DEMO_MODE', true); /* Offset to GMT Time. */ -define('OFFSET_GMT', 2); +define('OFFSET_GMT', 1); /* Should we enforce only one session per user (excluding demo)? */ define('ENABLE_SINGLE_SESSION', false); @@ -199,7 +199,7 @@ * 2: Sendmail * 3: SMTP */ -define('MAIL_MAILER', 3); +define('MAIL_MAILER', 1); /* Sendmail Settings. You don't need to worry about this unless MAIL_MAILER * is set to 2. @@ -212,7 +212,7 @@ */ define('MAIL_SMTP_HOST', "localhost"); define('MAIL_SMTP_PORT', 587); -define('MAIL_SMTP_AUTH', true); +define('MAIL_SMTP_AUTH', false); define('MAIL_SMTP_USER', "user"); define('MAIL_SMTP_PASS', "password"); //Options: '', 'ssl' or 'tls' @@ -288,15 +288,15 @@ );*/ -/* +/* require_once('.\constants.php'); // defining user roles const USER_ROLES = array( 'candidate' => array('Candidate', 'candidate', 'This is a candidate.', ACCESS_LEVEL_SA, ACCESS_LEVEL_READ), 'demo' => array('Demo', 'demo', 'This is a demo user.', ACCESS_LEVEL_SA, ACCESS_LEVEL_READ) ); - -// defining access levels different from the default access level + +// defining access levels different from the default access level const ACCESS_LEVEL_MAP = array( 'candidate' => array( ), @@ -310,7 +310,7 @@ ) );*/ -/* All possible secure object names +/* All possible secure object names 'candidates.history' 'settings.administration' 'joborders.editRating' @@ -439,4 +439,21 @@ 'calendar.deleteEvent' */ +define('PROJECT_DIR',dirname(__FILE__)); +define('LOCALE_DIR', PROJECT_DIR .'/locale'); +define('DEFAULT_LOCALE', 'pl'); +define('ATS_CV_INDEXING_INFO_URL', 'http://www.catsone.com/resumeIndexingSoftware.php?'); +define('ATS_DB_BACKUP_FILENAME', 'catsbackup.bak'); +define('ATS_DEMO_FICT_COMPANY','MyCompany.NET'); +define('ATS_DEMO_FICT_USER','john@mycompany.net'); +define('ATS_DEMO_FICT_PASS','john99'); +define('ATS_CT_DOMAIN','catsone.com'); +define('ATS_FORUM_URL','http://www.opencats.org/forums/'); + +/* Give the session a unique name to avoid conflicts and start the session. */ +//@session_name(CATS_SESSION_NAME); +//session_start(); + +include_once('./locale/lang.php'); + ?> diff --git a/index.php b/index.php index 7b46f4e95..cf9bea276 100644 --- a/index.php +++ b/index.php @@ -84,6 +84,17 @@ @session_name(CATS_SESSION_NAME); session_start(); +if (isset($_SESSION['CATS']) && trim($_SESSION['CATS']->getUserCountry())!=''){ + //echo 'lngreset'.$_SESSION['CATS']->getUserCountry(); + //if (!isset($_SESSION['lang']) || ($_SESSION['lang']!=$_SESSION['CATS']->getUserCountry())){ + $_SESSION['lang']=$_SESSION['CATS']->getUserCountry(); + //} +} +if (isset($_SESSION['lang']) && $_SESSION['lang']!=DEFAULT_LOCALE){ + //cho 'lngreset'.$_SESSION['lang']; + lngReset($_SESSION['lang']); +} + /* Try to prevent caching. */ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); diff --git a/installwizard.php b/installwizard.php index f8531b282..44fdf0e27 100755 --- a/installwizard.php +++ b/installwizard.php @@ -22,7 +22,7 @@ ?> - OpenCATS - Installation Wizard Script + <?php echo __("OpenCATS");?> - <?php echo __("Installation Wizard Script");?> @@ -31,8 +31,8 @@
-
- +
+
@@ -48,32 +48,32 @@
- Step 1: System Check

+ 1:

- Step 2: Database Connectivity

+ 2:

- Step 3: Loading Data

+ 3:

- Step 4: Setup Resume Indexing

+ 4:

- Step 5: Mail Settings

+ 5:

- Step 6: Loading Extras

+ 6:

- Step 7: Finishing Installation + 7:

- + " onclick="Installpage_populate('a=startInstall');" style="width:200px;"> @@ -81,78 +81,83 @@