mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-22 02:34:59 -04:00
* fix(security): handle special characters in `.env` key values and improve insertion logic - Escape backslashes and dollar signs in `applyEnvKeyReplacement` to prevent unintended value corruption. - Ensure new keys are inserted after `encryption.key` for better organization and manageability. - Add explicit cast to int to prevent wrong concatenation operator warning. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): handle null return in `applyEnvKeyReplacement` and ensure proper `.env` updates - Update `applyEnvKeyReplacement` to return `null` on failure, improving error handling. - Adjust calls to `atomicWriteFile` with updated content to prevent unintended behavior. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): improve error logging and exception messages in file locking - Add detailed logging for file open and locking errors in `security_helper`. - Remove unused `helper` and `checkThrottleEncryption` calls from `Events` for cleanup. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): improve atomic file write and handle encryption key placement - Throw `RandomException` for better error reporting in `atomicWriteFile`. - Simplify Windows-specific `rename()` fallback logic. - Fix `encryption.key` assignment order to ensure consistency in `.env` updates. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): improve `.env` file handling and add unit tests for helper functions - Suppress warnings in `file_get_contents` to prevent unnecessary error logs. - Update `applyEnvKeyReplacement` to use `preg_replace_callback` for better safety. - Add comprehensive unit tests for `security_helper` functions to ensure `.env` updates and key management work as expected. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): enhance `.env` update logic and add robust exception handling - Add `RandomException` to improve error reporting in encryption key management. - Introduce environment file locking for safer `.env` updates. - Ensure `applyEnvKeyReplacement` properly handles and inserts old key comments. - Replace direct file writes with `atomicWriteFile` for consistency. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): refactor `.env` file initialization and encryption key handling - Introduce `initializeEnvFile` for reusable `.env` setup logic. - Add `backupEnvFile` and `writeNewEncryptionKey` for robust key management with backups. - Simplify and clean up redundant `.env` handling code paths. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): clarify `checkEncryption` docblock return value description Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(security): escape backslashes and dollar signs in `applyEnvKeyReplacement` - Ensure `applyEnvKeyReplacement` properly escapes special characters when inserting or appending `.env` keys. - Add new unit tests to validate correct handling of backslashes and dollar signs. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * fix(i18n): add localized error messages and improve error reporting in `security_helper` - Add missing translations for error messages across multiple language files. - Update `security_helper` to use localized exception messages with placeholders. Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> * Redesign encryption/throttle key provisioning as read-only runtime - checkEncryption()/checkThrottleEncryption() are now read-only guards that throw when no valid key is provisioned, instead of writing .env at request time. - Add rotateEncryptionKey() and provisionThrottleKey() for explicit, idempotent provisioning. - Add php spark env:provision (app/Commands/EnvProvision.php) so Docker can provision keys once at container startup before any request. - Add app/Libraries/CI3SecretConverter.php shared CI3->CI4 secret converter (AES-128-CBC decrypt + CI4 re-encrypt/verify/save) used by both the interactive migration and the docker startup path. - Refactor convertToCI4 migration to use the shared converter. - Persist .env in a named volume and run spark env:provision on boot; stop baking .env into the shipped image. - Add guard/rotation/throttle + converter tests; clean up orphaned msg_pwd_required language keys across all locales. * fix: save CI4 ciphertext in env:provision and bind-mount a .env file Addresses CodeRabbit review on PR #4656: - env:provision CI3 branch was persisting *plaintext* secrets (saveAll($plain)) instead of the CI4 ciphertext, unlike the ConvertToCI4 migration. Now encrypts with encryptAll(), verifies the round trip, and saves the ciphertext. - The ospos_env named volume mounted at /app/.env made .env a directory, so atomicWriteFile's rename() failed and spark env:provision could not start apache. Switch to a bind mount of a host file (./.env) which persists and stays a file. - Add a regression test asserting the command persists ciphertext (not plaintext). * chore: trim redundant docblocks in EnvProvision and provision throttle.key in CI Follow up on @objecttothis review comments: - app/Commands/EnvProvision.php: remove the boilerplate docblocks the property names already convey (group/name/usage/description, run()), the two inline step comments, the anyNonEmpty() param docblock, and the legacySecretsPresent() docblock. Keeps the class-level docblock since it is the only place that states the read-only runtime design + the never-persist-plaintext invariant. - .github/workflows/phpunit.yml: provision a per-run throttle.key the same way the encryption key is already provisioned. The PR makes checkThrottleEncryption() a read-only guard that throws when env('throttle.key') is unset; CI only started exporting ENCRYPTION_KEY, so every test that goes through the Throttle filter (7 ThrottleTest cases + 4 LoginTest cases) failed with "No throttle key is provisioned. Run `php spark env:provision`". Writing `throttle.key=<KEY>` into .env matches what `php spark env:provision` does on a real container start. * fix(ci): write throttle.key into .env instead of exporting an OS env var The previous attempt exported throttle.key via GITHUB_ENV, but CodeIgniter's env() helper resolves in the order $_ENV[$key] ?? $_SERVER[$key] ?? getenv($key), and DotEnv populates $_ENV['throttle.key'] from the .env file first. Because the .env (copied from .env.example) ships with the empty placeholder throttle.key='', that $_ENV entry exists as '' and short-circuits the ?? chain before getenv() is reached — so the OS env var was never consulted and every Throttle/Login test still threw 'No throttle key is provisioned'. Write the per-run key into the .env file itself (sed-replacing the empty placeholder), which is exactly what `php spark env:provision` does in production and is the single source env() actually reads from. Verify the replacement happened (grep -Eq '^throttle\.key=.') so a future change to the placeholder format fails the run loudly instead of silently breaking the 11 throttle-dependent tests. * fix(security): restore CI3->CI4 auto-provisioning gated by .env writability checkEncryption()/checkThrottleEncryption() again provision the keys inline when .env is writable (empty key -> generate; short key -> decrypt, rotate, re-encrypt, verify, persist legacy CI3 secrets). When .env is not writable they assume the key was provisioned externally (e.g. docker env:provision) and throw. Update helper tests to match and correct the EnvProvision docblock that claimed the runtime was strictly read-only. * test(security): make short-key conversion branch injectable and test it checkEncryption() now accepts an optional CI3SecretConverter so the CI3->CI4 conversion branch can be exercised in unit tests without a database. Adds testCheckEncryptionConvertsCi3ShortKeyWhenEnvWritable which seeds CI3-era ciphertexts via a fake Appconfig model and asserts the key is rotated and the payload verifies back to the original plaintext. * fix(security): abort on backup/read/saveAll failure to avoid data loss Three related data-integrity fixes: - backupEnvFile() now returns true/false based on whether the backup actually exists and is readable. rotateEncryptionKey() aborts before destroying the key when the backup could not be written to disk. - rotateEncryptionKey() and provisionThrottleKey() throw RuntimeException(Error.unable_to_read_env_file) when the .env read fails, instead of silently replacing the whole file with an empty string. This prevents a permission error from wiping all keys. - checkEncryption() and EnvProvision::run() now both roll back to the backup with abortEncryptionConversion() when the post-rotation saveAll() throws, matching the migration path (which already did this). A failing fake Appconfig is used to exercise this in the new testCheckEncryptionRollsBackWhenSaveAllFails test. * fix(ci): skip comment job in deploy-pr.yml when prepare was not run The comment job had if: always(), so it ran even when the prepare job was skipped (e.g. review was not approved). With PR_NUMBER empty the gh api call posted to issues//comments, received a 404, and the entire run showed up as failure. Guard the job with needs.prepare.result == 'success' so it only runs when PR_NUMBER is valid. * address coderabbit open items: placeholder guards, message neutrality, ar-EG alignment - backupEnvFile(): fail when mkdir() or either chmod() fails, so the pre-rotation backup is actually persisted before the key is replaced - email/message config views: only show the 'already set' placeholder when the secret is actually present (prevented false positives on fresh installs) - Error.unable_to_create_env_file / .unable_to_read_env_file (en + en-GB): use key-neutral wording since both keys are provisioned with the same keys - ar-EG/Error.php: align all => arrows on the longest key Item 7 (filesystem test isolation) is a larger refactor — the tests are serial on CI and tearDown() restores state per test. Left for follow-up. * test(security): isolate helper FS tests via Config\SecurityEnv Introduce Config\SecurityEnv holding envPath/backupPath/lockPath so the security helper reads its target paths from shared configuration instead of hardcoded ROOTPATH/WRITEPATH literals. security_helperTest.php now redirects all three to a unique per-run sandbox under sys_get_temp_dir() and tears it down in tearDown(), so the suite no longer reads/writes the repository's real .env and is safe to run in parallel. No helper signature changes; production callers unaffected. Addresses CodeRabbit item 7 (issue #4700). Co-Authored-By: opencode <bot@opencode.ai> * fix(security): run key-conversion as one locked transaction Address CodeRabbit Major findings from the 4th re-review of the env helper and its callers: 1. Hold .env.lock for the entire CI3 -> CI4 conversion transaction (backup -> rotate -> re-encrypt -> verify -> persist -> cleanup) so a concurrent worker cannot interleave a key write between the rotation and the ciphertext save. Split rotateEncryptionKey into a lock-free core (rotateEncryptionKeyUnlock) plus the existing lock wrapper and a new rotateEncryptionKeyTransaction that owns the lock across the full unit and performs both the in-lock rollback (abortEncryptionConversion) and the in-lock backup removal on success. 2. Treat the legacy value '0' as non-empty data so key rotation still persists the re-encrypted ciphertext when '0' is the only stored secret (array_filter would have dropped it and skipped saveAll). 3. Wrap the post-rotation re-encrypt/verify/saveAll sequence in a catch (Throwable) across all three call-sites so CI4 EncryptionException, ReflectionException from batch_save, a failed round-trip verify, and any other failure all roll the .env key back to the pre-rotation state. 4. In Docker Compose, use long-syntax bind with create_host_path: false and document in INSTALL.md that the host .env must be a regular file (a missing one is no longer auto-created as a directory, and the mount now rejects a missing source on Compose implementations that support the flag). Files touched: app/Helpers/security_helper.php, app/Commands/EnvProvision.php, app/Database/Migrations/20220127000000_convertToCI4.php, docker-compose.yml, INSTALL.md. All 4 existing helper tests still pass via CI. * fix(security): make abortEncryptionConversion fail loudly on restore failure The rollback path restored the .env backup with a suppressed file_put_contents() and an unchecked file_get_contents(). If the restore failed after the key had already been rotated, .env was left holding the new CI4 key while the DB still held CI3-era ciphertext, so the data became undecryptable after the next restart. Now the backup read is checked for false and the restore goes through the existing atomicWriteFile() helper; either failure throws so the error is surfaced instead of silently corrupting the config. Adds a regression test that forces an unreadable backup and asserts the throw plus that .env is left untouched. * fix(security): guard abortEncryptionConversion backup read before touching it Validate the backup is a regular readable file (is_file/is_readable) before reading it, so a missing/malformed backup fails loudly instead of emitting a file_get_contents() warning. The unreadable-backup regression test now exercises this guard rather than relying on a promoted warning. --------- Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com> Co-authored-by: jekkos <jeroen.peelaerts@gmail.com> Co-authored-by: jekkos <jekkos@users.noreply.github.com> Co-authored-by: opencode <bot@opencode.ai>
335 lines
37 KiB
PHP
335 lines
37 KiB
PHP
<?php
|
|
|
|
return [
|
|
'address' => 'ที่อยู่',
|
|
'address_required' => 'ที่อยู่ต้องกรอก',
|
|
'all_set' => 'การตั้งค่าอนุญาตไฟล์ทั้งหมดถูกต้อง!',
|
|
'allow_duplicate_barcodes' => 'อนุญาตบาร์โค้ดที่ซ้ำกัน',
|
|
'apostrophe' => "อัญประกาศเดี่ยว '",
|
|
'backup_button' => 'สำรองข้อมูล',
|
|
'backup_database' => 'สำรองฐานข้อมูล',
|
|
'barcode' => 'ตั้งค่าระบบบาร์โค้ด',
|
|
'barcode_company' => 'ชื่อร้านค้า',
|
|
'barcode_configuration' => 'ตั้งค่าระบบบาร์โค้ด',
|
|
'barcode_content' => 'รหัสที่พิมพ์',
|
|
'barcode_first_row' => 'แถว 1',
|
|
'barcode_font' => 'แบบอักษร',
|
|
'barcode_formats' => 'รูปแบบอินพุต',
|
|
'barcode_generate_if_empty' => 'Generate if empty',
|
|
'barcode_height' => 'สูง (px)',
|
|
'barcode_id' => 'รหัสสินค้า/ชื่อสินค้า',
|
|
'barcode_info' => 'ตั้งค่าบาร์โค้ด',
|
|
'barcode_layout' => 'โครงร่างการพิมพ์',
|
|
'barcode_name' => 'สินค้า',
|
|
'barcode_number' => 'UPC/EAN/ISBN',
|
|
'barcode_number_in_row' => 'จำนวนดวงใน 1 แถว',
|
|
'barcode_page_cellspacing' => 'ระยะห่างต่อดวง',
|
|
'barcode_page_width' => 'ความกว้างในหน้า',
|
|
'barcode_price' => 'ราคา',
|
|
'barcode_second_row' => 'แถว 2',
|
|
'barcode_third_row' => 'แถว 3',
|
|
'barcode_tooltip' => 'คำเตือน: คุณสมบัตินี้สามารถทำให้เกิดรายการที่ซ้ำกันที่จะนำเข้าหรือสร้าง ห้ามใช้หากคุณไม่ต้องการบาร์โค้ดที่ซ้ำกัน',
|
|
'barcode_type' => 'ประเภทบาร์โค้ด',
|
|
'barcode_width' => 'กว้าง (px)',
|
|
'bottom' => 'ด้านล่าง',
|
|
'cash_button' => '',
|
|
'cash_button_1' => '',
|
|
'cash_button_2' => '',
|
|
'cash_button_3' => '',
|
|
'cash_button_4' => '',
|
|
'cash_button_5' => '',
|
|
'cash_button_6' => '',
|
|
'cash_decimals' => 'ทศนิยมแบบการเงินสด',
|
|
'cash_decimals_tooltip' => 'ถ้าทศนิยมแบบเงินสดและทศนิยมแบบสกุลเงินเหมือนกันจะไม่มีการปัดเศษเงินสด',
|
|
'cash_rounding' => 'การปัดเศษทางการเงิน',
|
|
'category_dropdown' => 'แสดงกลุ่มเป็นแบบดรอปดาวน์',
|
|
'center' => 'กึ่งกลาง',
|
|
'change_apperance_tooltip' => '',
|
|
'comma' => 'จุลภาค',
|
|
'company' => 'ชื่อร้านค้า',
|
|
'company_avatar' => '',
|
|
'company_change_image' => 'เปลี่ยนรูป',
|
|
'company_logo' => 'ภาพโลโก้',
|
|
'company_remove_image' => 'ลบรูป',
|
|
'company_required' => 'ชื่อร้านค้าต้องกรอก',
|
|
'company_select_image' => 'เลือกรูป',
|
|
'company_website_url' => 'ที่อยู่เว็บไซต์ร้านค้าไม่ถูกต้อง (เช่น http://...)',
|
|
'country_codes' => 'รหัสประเทศ',
|
|
'country_codes_tooltip' => 'รายการรหัสประเทศที่คั่นด้วยคอมม่าสำหรับการค้นหาโดยชื่อที่อยู่',
|
|
'currency_code' => 'รหัสสกุลเงิน',
|
|
'currency_decimals' => 'ทศนิยมแบบการเงิน',
|
|
'currency_symbol' => 'สัญลักษณ์ค่าเงิน',
|
|
'current_employee_only' => '',
|
|
'customer_reward' => 'รางวัล',
|
|
'customer_reward_duplicate' => 'รางวัลต้องไม่ซ้ำกัน',
|
|
'customer_reward_enable' => 'เปิดใช้งานรางวัลของลูกค้า',
|
|
'customer_reward_invalid_chars' => "รางวัลไม่สามารถมี '_' ได้",
|
|
'customer_reward_required' => 'รางวัลเป็นฟิลด์บังคับ',
|
|
'customer_sales_tax_support' => '',
|
|
'date_or_time_format' => 'ตัวกรองวันที่และเวลา',
|
|
'datetimeformat' => 'รูปแบบวันและเวลา',
|
|
'decimal_point' => 'จุดทศนิยม',
|
|
'default_barcode_font_size_number' => 'ค่าบาร์โค้ดจะต้องเป็นตัวเลข',
|
|
'default_barcode_font_size_required' => 'ต้องระบุขนาดตัวบาร์โค้ดเริ่มต้น',
|
|
'default_barcode_height_number' => 'ความสูงของบาร์โค้ดต้องเป็นตัวเลข',
|
|
'default_barcode_height_required' => 'ต้องระบุความสูงของบาร์โค้ด',
|
|
'default_barcode_num_in_row_number' => 'บาร์โค้ดในแถวจะต้องเป็นตัวเลข',
|
|
'default_barcode_num_in_row_required' => 'ต้องระบุค่าบาร์โค้ด',
|
|
'default_barcode_page_cellspacing_number' => 'The default barcode page cellspacing must be a number',
|
|
'default_barcode_page_cellspacing_required' => 'The default barcode page cellspacing is a required field',
|
|
'default_barcode_page_width_number' => 'The default barcode page width must be a number',
|
|
'default_barcode_page_width_required' => 'The default barcode page width is a required field',
|
|
'default_barcode_width_number' => 'The default barcode width must be a number',
|
|
'default_barcode_width_required' => 'The default barcode width is a required field',
|
|
'default_item_columns' => 'คอลัมน์รายการที่แสดงเป็นค่าเริ่มต้น',
|
|
'default_origin_tax_code' => 'รหัสภาษีที่เป็นค่าเริ่มต้น',
|
|
'default_receivings_discount' => 'ส่วนลดที่เป็นค่าเริ่มต้นที่จะได้รับ',
|
|
'default_receivings_discount_number' => 'การรับส่วนลดที่เป็นค่าเริ่มต้นต้องเป็นตัวเลข',
|
|
'default_receivings_discount_required' => 'การรับส่วนลดที่เป็นค่าเริ่มต้นจำเป็นต้องระบุ',
|
|
'default_sales_discount' => 'ส่วนลดการขายที่เป็นค่าเริ่มต้น',
|
|
'default_sales_discount_number' => 'ส่วนลดการขายเริ่มต้นจะต้องเป็นตัวเลข',
|
|
'default_sales_discount_required' => 'ส่วนลดการขายเริ่มต้นเป็นจำเป็นต้องมีข้อมูล',
|
|
'default_tax_category' => 'หมวดหมู่ภาษีที่เป็นค่าเริ่มต้น',
|
|
'default_tax_code' => 'รหัสภาษีที่เป็นค่าเริ่มต้น',
|
|
'default_tax_jurisdiction' => 'เขตพื้นที่กฎหมายภาษีที่เป็นค่าเริ่มต้น',
|
|
'default_tax_name_number' => 'ชื่อภาษีที่เป็นค่าเริ่มต้นจะต้องเป็นตัวอักษร',
|
|
'default_tax_name_required' => 'ชื่อภาษีเริ่มต้นจำเป็นต้องมีข้อมูล',
|
|
'default_tax_rate' => 'อัตราภาษีเริ่มต้น %',
|
|
'default_tax_rate_1' => 'อัตราภาษีลำดับที่ 1',
|
|
'default_tax_rate_2' => 'อัตราภาษีลำดับที่ 2',
|
|
'default_tax_rate_3' => '',
|
|
'default_tax_rate_number' => 'อัตราภาษีเริ่มต้นต้องเป็นตัวเลข',
|
|
'default_tax_rate_required' => 'อัตราภาษีเริ่มต้นต้องกรอก',
|
|
'derive_sale_quantity' => 'จำนวนปริมาณการขายที่ได้รับ',
|
|
'derive_sale_quantity_tooltip' => 'หากทำเครื่องหมาย ระบบจะระบุประเภทรายการใหม่สำหรับรายการตามจำนวนที่เพิ่มขึ้น',
|
|
'dinner_table' => 'โต๊ะ',
|
|
'dinner_table_duplicate' => 'โต๊ะจะต้องไม่ซ้ำกัน',
|
|
'dinner_table_enable' => 'เปิดใช้งานบริการโต๊ะนั่งทาน',
|
|
'dinner_table_invalid_chars' => "ชื่อโต๊ะจะต้องไม่มีเครื่องหมาย '_' อยู่",
|
|
'dinner_table_required' => 'โต๊ะจำเป็นต้องระบุค่า',
|
|
'dot' => 'จุด',
|
|
'email' => 'อีเมล์',
|
|
'email_configuration' => 'ตั้งค่าอีเมล์',
|
|
'email_mailpath' => 'ที่อยู่ส่งเมล์',
|
|
'email_protocol' => 'โปรโตคอล',
|
|
'email_receipt_check_behaviour' => 'ทำเครื่องหมายรับอีเมล',
|
|
'email_receipt_check_behaviour_always' => 'ตรวจสอบอยู่เสมอ',
|
|
'email_receipt_check_behaviour_last' => 'จำการเลือกสุดท้าย',
|
|
'email_receipt_check_behaviour_never' => 'ไม่ถูกตรวจสอบเสมอ',
|
|
'email_smtp_crypto' => 'การเข้ารหัสของเอสเอ็มทีพี',
|
|
'email_smtp_host' => 'เซอร์เวอร์เอสเอ็มทีพี',
|
|
'email_smtp_pass' => 'รหัสผ่านเอสเอ็มทีพี',
|
|
'email_smtp_port' => 'เอสเอ็มทีพีพอร์ต',
|
|
'email_smtp_timeout' => 'ระยะเวลารอคอยของเอสเอ็มทีพี',
|
|
'email_smtp_user' => 'ชื่อผู้ใช้งานของเอสเอ็มทีพี',
|
|
'enable_avatar' => '',
|
|
'enable_avatar_tooltip' => '',
|
|
'enable_dropdown_tooltip' => '',
|
|
'enable_new_look' => '',
|
|
'enable_right_bar' => '',
|
|
'enable_right_bar_tooltip' => '',
|
|
'enforce_privacy' => 'บังคับความเป็นส่วนตัว',
|
|
'enforce_privacy_tooltip' => 'ปกป้องความเป็นส่วนตัวของลูกค้าที่บังคับใช้การตรวจข้อมูลในกรณีที่ข้อมูลถูกลบ',
|
|
'fax' => 'แฟ็กซ์',
|
|
'file_perm' => 'มีปัญหาเกี่ยวกับการอนุญาตของไฟล์ โปรดแก้ไขและโหลดหน้านี้ใหม่อีกครั้ง',
|
|
'financial_year' => 'เริ่มปีงบประมาณ',
|
|
'financial_year_apr' => 'วันที่ 1 เมษายน',
|
|
'financial_year_aug' => 'วันที่ 1 สิงหาคม',
|
|
'financial_year_dec' => 'วันที่ 1 ธันวาคม',
|
|
'financial_year_feb' => 'วันที่ 1 กุมภาพันธ์',
|
|
'financial_year_jan' => 'วันที่ 1 มกราคม',
|
|
'financial_year_jul' => 'วันที่ 1 กรกฏาคม',
|
|
'financial_year_jun' => 'วันที่ 1 มิถุนายน',
|
|
'financial_year_mar' => 'วันที่ 1 มีนาคม',
|
|
'financial_year_may' => 'วันที่ 1 พฤษภาคม',
|
|
'financial_year_nov' => 'วันที่ 1 พฤศจิกายน',
|
|
'financial_year_oct' => 'วันที่ 1 ตุลาคม',
|
|
'financial_year_sep' => 'วันที่ 1 กันยายน',
|
|
'floating_labels' => 'แสดงตัวเลข',
|
|
'gcaptcha_enable' => 'ขอรหัสยืนยันใหม่ เพื่อเข้าระบบ',
|
|
'gcaptcha_secret_key' => 'รหัสลับ สำหรับรหัสยืนยัน',
|
|
'gcaptcha_secret_key_required' => 'จำเป็นต้องระบุ รหัสลับ สำหรับรหัสยืนยัน',
|
|
'gcaptcha_site_key' => 'รหัสของเว็บเพจ สำหรับรหัสยืนยัน',
|
|
'gcaptcha_site_key_required' => 'จำเป็นต้องระบุ รหัสของเว็บเพจ สำหรับรหัสยืนยัน',
|
|
'gcaptcha_tooltip' => 'ปกป้องการเข้าสู่ระบบด้วย reCAPTCHA โปรดคลิกที่ไอคอนเพื่อรับ API key pair',
|
|
'general' => 'การตั้งค่า',
|
|
'general_configuration' => 'ตั้งค่าทั่วไป',
|
|
'giftcard_number' => 'เลขที่บัตรของขวัญ',
|
|
'giftcard_random' => 'สร้างหมายเลขแบบสุ่ม',
|
|
'giftcard_series' => 'สร้างหมายเลขตามลำดับ',
|
|
'image_allowed_file_types' => 'ประเภทไฟล์ที่ยอมรับ',
|
|
'image_max_height_tooltip' => 'ค่าพิกเซลความสูงของรูปที่ยอมให้แนบไฟล์ได้',
|
|
'image_max_size_tooltip' => 'ขนาดของไฟล์รูปที่ยอมให้แนบไฟล์ได้ในขนาดกิโลไบต์(kb.)',
|
|
'image_max_width_tooltip' => 'ค่าพิกเซลความยาวของรูปที่ยอมให้แนบไฟล์ได้',
|
|
'image_restrictions' => 'ข้อจำกัดของไฟล์รูปที่แนบ',
|
|
'include_hsn' => 'เพิ่มการรองรับ HSN Codes',
|
|
'info' => 'ข้อมูลร้านค้า',
|
|
'info_configuration' => 'ข้อมูลร้านค้า',
|
|
'input_groups' => 'นำเข้าแบบกลุ่ม',
|
|
'integrations' => 'การเข้าร่วม',
|
|
'integrations_configuration' => 'การเข้าร่วมกับบุคคลภายนอก',
|
|
'invoice' => 'ใบแจ้งหนี้',
|
|
'invoice_configuration' => 'ตั้งค่าการพิมพ์ใบแจ้งหนี้',
|
|
'invoice_default_comments' => 'ค่าเริ่มต้นหมายเหตุในใบแจ้งหนี้',
|
|
'invoice_email_message' => 'ต้นแบบใบแจ้งหนี้ (Email)',
|
|
'invoice_enable' => 'เปิดการออกใบแจ้งหนี้',
|
|
'invoice_printer' => 'เครื่องพิมพ์สำหรับการออกใบแจ้งหนี้',
|
|
'invoice_type' => 'ชนิดของใบแจ้งหนี้',
|
|
'is_readable' => 'สามารถอ่านได้ แต่สิทธิ์ไม่ถูกต้อง กรุณาตั้งค่าเป็น 640 หรือ 660 แล้วโหลดใหม่อีกครั้ง',
|
|
'is_writable' => 'สามารถเขียนข้อมูลได้ แต่สิทธิ์ไม่ถูกต้อง ต้องสูงกว่าค่า 750 กรุณาตั้งค่าเป็น 750 แล้วโหลดใหม่อีกครั้ง',
|
|
'item_markup' => '',
|
|
'jsprintsetup_required' => 'คำเตือน! ฟังก์ชันการทำงานที่ถูกปิดอยู่ จะสามารถใช้งานได้เมื่อติดตั้ง FireFox jsPrintSetup แล้วเท่านั้น, จะบันทึกข้อมูลหรือไม่?',
|
|
'language' => 'ภาษา',
|
|
'last_used_invoice_number' => 'หมายเลขใบแจ้งหนี้ฉบับล่าสุด',
|
|
'last_used_quote_number' => 'หมายเลขใบเสนอราคาฉบับล่าสุด',
|
|
'last_used_work_order_number' => 'หมายเลข W/O ฉบับล่าสุด',
|
|
'left' => 'ซ้าย',
|
|
'license' => 'ใบอนุญาต',
|
|
'license_configuration' => 'รายละเอียดใบอนุญาต',
|
|
'line_sequence' => 'เลขที่บรรทัด',
|
|
'lines_per_page' => 'จำนวนบรรทัด/หน้า',
|
|
'lines_per_page_number' => 'จำนวนบรรทัด/หน้า จะต้องเป็นตัวเลข',
|
|
'lines_per_page_required' => 'จำเป็นต้องป้อน จำนวนบรรทัด/หน้า',
|
|
'locale' => 'เขตพื้นที่',
|
|
'locale_configuration' => 'ตั้งค่าเขตพื้นที่',
|
|
'locale_info' => 'ข้อมูลเขตพื้นที่',
|
|
'location' => 'สินค้าคงคลัง',
|
|
'location_configuration' => 'ตำแหน่งสินค้าคงคลัง',
|
|
'location_info' => 'ข้อมูลตำแหน่งสินค้าคงคลัง',
|
|
'login_form' => 'รูปแบบแบบฟอร์มการเข้าระบบ',
|
|
'logout' => 'ต้องการสำรองข้อมูลก่อนออกจากระบบหรือไม่? [OK] สำรองข้อมูล / [Cancel] ออกจากระบบ',
|
|
'mailchimp' => 'ระบบส่งอีเมล์เมล์ชิม',
|
|
'mailchimp_api_key' => 'API Key สำหรับระบบส่งอีเมล์เมล์ชิม',
|
|
'mailchimp_configuration' => 'ตั้งค่าระบบส่งอีเมล์เมล์ชิม',
|
|
'mailchimp_key_successfully' => 'API Key ถูกต้อง',
|
|
'mailchimp_key_unsuccessfully' => 'API Key ไม่ถูกต้อง',
|
|
'mailchimp_lists' => 'รายการระบบส่งอีเมล์เมล์ชิม',
|
|
'mailchimp_tooltip' => 'คลิกที่ไอคอนเพื่อรับ API Key',
|
|
'message' => 'ข้อความ',
|
|
'message_configuration' => 'ตั้งค่าข้อความ',
|
|
'msg_msg' => 'ข้อความที่ถูกบักทึกไว้',
|
|
'msg_msg_placeholder' => 'สร้างข้อความ SMS template ที่นี่',
|
|
'msg_pwd' => 'รหัสผ่านของ SMS-API',
|
|
'msg_src' => 'ID ผู้ส่ง (SMS-API)',
|
|
'msg_src_required' => 'จำเป็นต้องป้อน ID ผู้ส่ง',
|
|
'msg_uid' => 'ชื่อผู้ใช้งานระบบ SMS-API',
|
|
'msg_uid_required' => 'จำเป็นต้องป้อน ชื่อผู้ใช้งานระบบ SMS-API',
|
|
'multi_pack_enabled' => 'หนึ่งรายการมีหลายชิ้น',
|
|
'no_risk' => 'ไม่มีความเสี่ยงด้านความปลอดภัย / ความเสี่ยง',
|
|
'none' => 'none',
|
|
'notify_alignment' => 'แจ้งตำแหน่งแสดงการแจ้งเตือน',
|
|
'number_format' => 'รูปแบบตัวเลข',
|
|
'number_locale' => 'Localisation',
|
|
'number_locale_invalid' => 'The entered locale is invalid. Check the link in the tooltip to find a sensible value',
|
|
'number_locale_required' => 'Number Locale is a required field',
|
|
'number_locale_tooltip' => 'Find a suitable locale through this link',
|
|
'os_timezone' => 'เขตเวลาของระบบ OSPOS:',
|
|
'ospos_info' => 'ข้อมูลการติดตั้งระบบ OSPOS',
|
|
'payment_options_order' => 'ตัวเลือกการชำระเงิน',
|
|
'payment_reference_code_length_limits' => 'รหัสอ้างอิงการชำระเงิน<br>ขีดจำกัดความยาว',
|
|
'payment_reference_code_length_max_label' => 'สูงสุด',
|
|
'payment_reference_code_length_min_label' => 'ต่ำสุด',
|
|
'perm_risk' => 'การอนุญาตที่ไม่ถูกต้องทำให้ซอฟต์แวร์นี้ตกอยู่ในความเสี่ยง',
|
|
'phone' => 'เบอร์โทรศัพท์',
|
|
'phone_required' => 'เบอร์โทรต้องกรอก',
|
|
'print_bottom_margin' => 'ขอบล่าง',
|
|
'print_bottom_margin_number' => 'The default bottom margin must be a number',
|
|
'print_bottom_margin_required' => 'The default bottom margin is a required field',
|
|
'print_delay_autoreturn' => 'การส่งกลับอัตโนมัติของการขายที่ล่าช้า',
|
|
'print_delay_autoreturn_number' => 'การส่งกลับอัตโนมัติของการขายที่ล่าช้าจำเป็นต้องระบุ',
|
|
'print_delay_autoreturn_required' => 'การส่งกลับอัตโนมัติของการขายที่ล่าช้าต้องระบุเป็นตัวเลข',
|
|
'print_footer' => 'พิมพ์ส่วนท้ายของเบราว์เซอร์',
|
|
'print_header' => 'พิมพ์ส่วนหัวของเบราว์เซอร์',
|
|
'print_left_margin' => 'ขอบด้านซ้าย',
|
|
'print_left_margin_number' => 'ขอบด้านซ้ายค่าเริ่มต้นต้องเป็นตัวเลข',
|
|
'print_left_margin_required' => 'จำเป็นต้องระบุขอบด้านซ้าย',
|
|
'print_receipt_check_behaviour' => 'กล่องพิมพ์ใบเสร็จรับเงิน',
|
|
'print_receipt_check_behaviour_always' => 'เลือกไว้ตลอด',
|
|
'print_receipt_check_behaviour_last' => 'จดจำการเลือกสุดท้ายไว้',
|
|
'print_receipt_check_behaviour_never' => 'ไม่เลือกไว้ตลอด',
|
|
'print_right_margin' => 'ขอบด้านขวา',
|
|
'print_right_margin_number' => 'ขอบด้านขวาค่าเริ่มต้นต้องเป็นตัวเลข',
|
|
'print_right_margin_required' => 'ต้องระบุขอบด้านขวา',
|
|
'print_silently' => 'แสดงกล่องโต้ตอบการพิมพ์',
|
|
'print_top_margin' => 'ขอบด้านบน',
|
|
'print_top_margin_number' => 'ขอบด้านบนค่าเริ่มต้นจะต้องเป็นตัวเลข',
|
|
'print_top_margin_required' => 'ต้องระบุขอบด้านบน',
|
|
'quantity_decimals' => 'ทศนิยมจำนวน',
|
|
'quick_cash_enable' => '',
|
|
'quote_default_comments' => 'ค่าปริยายของความคิดเห็น',
|
|
'receipt' => 'ใบเสร็จ',
|
|
'receipt_category' => '',
|
|
'receipt_configuration' => 'ตั้งค่าใบเสร็จ',
|
|
'receipt_default' => 'ค่าเริ่มต้น',
|
|
'receipt_font_size' => 'ขนาดของตัวอักษร',
|
|
'receipt_font_size_number' => 'ขนาดตัวอักษรต้องเป็นตัวเลข',
|
|
'receipt_font_size_required' => 'จำเป็นต้องระบุขนาดตัวอักษร',
|
|
'receipt_info' => 'ข้อมูลการตั้งค่าใบเสร็จ',
|
|
'receipt_printer' => 'เครื่องพิมพ์ตั๋ว',
|
|
'receipt_short' => 'สั้น',
|
|
'receipt_show_company_name' => 'แสดงชื่อบริษัท',
|
|
'receipt_show_description' => 'แสดงรายละเอียด',
|
|
'receipt_show_serialnumber' => 'แสดงหมายเลขซีเรียล',
|
|
'receipt_show_tax_ind' => 'แสดงอัตราภาษี',
|
|
'receipt_show_taxes' => 'แสดงภาษี',
|
|
'receipt_show_total_discount' => 'แสดงส่วนลดทั้งหมด',
|
|
'receipt_template' => 'ต้นแบบใบเสร็จ',
|
|
'receiving_calculate_average_price' => 'คำนวณราคาเฉลี่ย (ได้รับมา)',
|
|
'recv_invoice_format' => 'ใบส่งของ',
|
|
'register_mode_default' => 'ค่าปริยายรูปแบบการลงทะเบียน',
|
|
'report_an_issue' => 'รายงานปัญหา',
|
|
'return_policy_required' => 'ต้องกรอกเงื่อนไขการคืนสินค้า',
|
|
'reward' => 'คะแนนสะสม',
|
|
'reward_configuration' => 'การตั้งค่าคะแนนสะสม',
|
|
'right' => 'ถูกต้อง',
|
|
'sales_invoice_format' => 'รหัสใบเสร็จ',
|
|
'sales_quote_format' => 'รูปแบบใบเสนอราคาขาย',
|
|
'mailpath_invalid' => 'เส้นทาง sendmail ไม่ถูกต้อง อนุญาตเฉพาะตัวอักษร ตัวเลข ขีดกลาง ขีดล่าง เครื่องหมายทับ เครื่องหมายทับกลับ โคลอน ช่องว่าง และจุดเท่านั้น',
|
|
'saved_successfully' => 'บันทึกข้อมูลร้านค้าเรียบร้อยแล้ว',
|
|
'saved_unsuccessfully' => 'บันทึกข้อมูลร้านค้าไม่สำเร็จ',
|
|
'security_issue' => 'คำเตือนช่องโหว่ด้านความปลอดภัย',
|
|
'server_notice' => 'โปรดใช้ข้อมูลด้านล่างสำหรับการรายงานปัญหา',
|
|
'service_charge' => '',
|
|
'show_due_enable' => '',
|
|
'show_office_group' => 'แสดงไอคอนสำนักงาน',
|
|
'statistics' => 'ส่งยอดสถิติ',
|
|
'statistics_tooltip' => 'ส่งข้อมูลสถิติเพื่อการพัฒนาและปรับปรุงความสามารถ',
|
|
'stock_location' => 'สถานที่เก็บ',
|
|
'stock_location_duplicate' => 'ที่ตั้งคลังสินค้าต้องไม่ซ้ำกัน',
|
|
'stock_location_invalid_chars' => "ชื่อสต๊อกสถานที่เก็บสินค้าต้องไม่มีอักษรพิเศษ '_'",
|
|
'stock_location_required' => 'จำเป็นต้องระบุสถานที่เก็บ',
|
|
'suggestions_fifth_column' => '',
|
|
'suggestions_first_column' => 'คอลัมน์ 1',
|
|
'suggestions_fourth_column' => '',
|
|
'suggestions_layout' => 'รูปแบบข้อแนะนำในการค้นหา',
|
|
'suggestions_second_column' => 'คอลัมน์ 2',
|
|
'suggestions_third_column' => 'คอลัมน์ 3',
|
|
'system_conf' => 'การตั้งค่าและกำหนดค่า',
|
|
'system_info' => 'System Info',
|
|
'table' => 'โต๊ะนั่งทาน',
|
|
'table_configuration' => 'ตั้งค่าโต๊ะนั่งทาน',
|
|
'takings_printer' => 'เลือกเครื่องพิมพ์',
|
|
'tax' => 'ภาษี',
|
|
'tax_category' => 'หมวดหมู่ภาษี',
|
|
'tax_category_duplicate' => 'หมวดหมู่ภาษีที่ป้อน ซ้ำกับข้อมูลที่มีอยู่',
|
|
'tax_category_invalid_chars' => 'หมวดหมู่ภาษีที่ป้อน ไม่ถูกต้อง',
|
|
'tax_category_required' => 'หมวดหมู่ภาษี จำเป็นต้องป้อน',
|
|
'tax_category_used' => 'ไม่สามารถลบ หมวดหมู่ภาษี ที่กำลังมีการใช้งานอยู่',
|
|
'tax_configuration' => 'ตั้งค่าระบบภาษี',
|
|
'tax_decimals' => 'จำนวนทศนิยมภาษี',
|
|
'tax_id' => 'เลขประจำตัวผู้เสียภาษี',
|
|
'tax_included' => 'รวมภาษีแล้ว',
|
|
'theme' => 'Theme',
|
|
'theme_preview' => 'ดูตัวอย่างธีม:',
|
|
'thousands_separator' => 'ตัวคั่นหลักพัน',
|
|
'timezone' => 'โซนเวลา',
|
|
'timezone_error' => 'เขตเวลาของระบบ OSPOS แตกต่างกับเขตเวลาปัจจุบันของคุณ',
|
|
'top' => 'ด้านบน',
|
|
'use_destination_based_tax' => 'เปิดใช้ Destination-Based Tax',
|
|
'user_timezone' => 'เขตเวลาปัจจุบัน:',
|
|
'website' => 'เว็บไซต์',
|
|
'wholesale_markup' => '',
|
|
'work_order_enable' => 'เปิดใช้ ใบสั่งงาน (WO)',
|
|
'work_order_format' => 'รูปแบบ ใบสั่งงาน (WO)',
|
|
];
|