Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1ee9db7
authored
Jul 30, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
i18N
1 parent
ab527357
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
258 additions
and
37 deletions
opensipkd/locale/id/LC_MESSAGES/opensipkd_tools.po
opensipkd/tools/__init__.py
opensipkd/tools/buttons.py
opensipkd/tools/locale/id/LC_MESSAGES/button.po
opensipkd/locale/id/LC_MESSAGES/opensipkd_tools.po
0 → 100644
View file @
f1ee9db
#
# Indonesian translations for PACKAGE package
# This file is distributed under the same license as the PACKAGE package.
# <aagusti@desktop-pa2epik.localdomain>, 2022.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
"POT-Creation-Date: 2022-07-30 19:14+0700\n"
"PO-Revision-Date: 2022-07-30 19:16+0700\n"
"Last-Translator: <aagusti@desktop-pa2epik.localdomain>\n"
"Language-Team: Indonesian\n"
"Language: id\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingua 4.15.0\n"
#: opensipkd/tools/buttons.py:6
msgid "Add"
msgstr "Tambah"
#: opensipkd/tools/buttons.py:7
msgid "Lihat"
msgstr "Lihat"
#: opensipkd/tools/buttons.py:31
msgid "Invoice"
msgstr "Tagihan"
#: opensipkd/tools/buttons.py:32
msgid "MAP"
msgstr "Peta"
#: opensipkd/tools/buttons.py:62
msgid "Login"
msgstr "Masuk"
#: opensipkd/tools/buttons.py:63
msgid "Register"
msgstr "Register"
#: opensipkd/tools/buttons.py:64
msgid "Change Password"
msgstr "Ubah Password"
#: opensipkd/tools/buttons.py:65
msgid "Lost Password"
msgstr "Lupa Password"
#: opensipkd/tools/buttons.py:66
msgid "Yes"
msgstr "Ya"
#: opensipkd/tools/buttons.py:67
msgid "No"
msgstr "Tidak"
opensipkd/tools/__init__.py
View file @
f1ee9db
...
...
@@ -1019,3 +1019,6 @@ def set_user_log(message, request, logobj=None, user_name=None):
addr
=
request
.
client_addr
message
=
"User {} at Addr {}: {}"
.
format
(
user_name
,
addr
,
message
)
logobj
.
warning
(
message
)
def
includeme
(
config
):
config
.
add_translation_dirs
(
'opensipkd.tools:locale/'
)
opensipkd/tools/buttons.py
View file @
f1ee9db
from
deform.form
import
Button
from
translationstring
import
TranslationStringFactory
from
pyramid.i18n
import
TranslationStringFactory
_
=
TranslationStringFactory
(
'button'
)
import
pyramid.i18n
as
i18
btn_add
=
Button
(
'add'
,
title
=
_
(
'Add'
),
css_class
=
"btn-success"
)
btn_view
=
Button
(
'view'
,
title
=
_
(
'Lihat'
),
css_class
=
"btn-info"
)
btn_edit
=
Button
(
'edit'
,
title
=
'Edit'
,
css_class
=
"btn-success"
)
btn_delete
=
Button
(
'delete'
,
title
=
'Hapus'
,
css_class
=
"btn-danger"
)
btn_save
=
Button
(
'save'
,
title
=
'Simpan'
,
css_class
=
"btn-primary"
)
btn_force
=
Button
(
'force'
,
title
=
'Paksa'
,
css_class
=
"btn-info"
)
btn_upload
=
Button
(
'upload'
,
title
=
'Upload'
,
css_class
=
"btn-info"
)
btn_filter
=
Button
(
'filter'
,
title
=
'Filter'
,
css_class
=
"btn-info"
)
btn_cancel
=
Button
(
'cancel'
,
title
=
'Batal'
,
css_class
=
"btn-warning"
)
btn_reset
=
Button
(
'reset'
,
title
=
'Reset'
,
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_close
=
Button
(
'close'
,
title
=
'Tutup'
,
css_class
=
"btn-danger"
)
btn_print
=
Button
(
'print'
,
title
=
'Print'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_view
=
Button
(
'view'
,
title
=
_
(
'View'
),
css_class
=
"btn-info"
)
btn_edit
=
Button
(
'edit'
,
title
=
_
(
'Edit'
),
css_class
=
"btn-success"
)
btn_delete
=
Button
(
'delete'
,
title
=
_
(
'Delete'
),
css_class
=
"btn-danger"
)
btn_save
=
Button
(
'save'
,
title
=
_
(
'Save'
),
css_class
=
"btn-primary"
)
btn_force
=
Button
(
'force'
,
title
=
_
(
'Force'
),
css_class
=
"btn-info"
)
btn_upload
=
Button
(
'upload'
,
title
=
_
(
'Upload'
),
css_class
=
"btn-info"
)
btn_filter
=
Button
(
'filter'
,
title
=
_
(
'Filter'
),
css_class
=
"btn-info"
)
btn_cancel
=
Button
(
'cancel'
,
title
=
_
(
'Cancel'
),
css_class
=
"btn-warning"
)
btn_reset
=
Button
(
'reset'
,
title
=
_
(
'Reset'
),
css_class
=
"btn-warning"
,
type
=
"reset"
)
btn_close
=
Button
(
'close'
,
title
=
_
(
'Close'
),
css_class
=
"btn-danger"
)
btn_print
=
Button
(
'print'
,
title
=
_
(
'Print'
),
css_class
=
"btn-info"
,
type
=
"button"
)
btn_pdf
=
Button
(
'pdf'
,
title
=
'PDF'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_csv
=
Button
(
'csv'
,
title
=
'CSV'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_txt
=
Button
(
'txt'
,
title
=
'TXT'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_label
=
Button
(
'label'
,
title
=
'Print Label'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_print_ttr
=
Button
(
'ttr'
,
title
=
'Tanda Terima'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_barcode
=
Button
(
'barcode'
,
title
=
'Barcode'
,
css_class
=
"btn-success"
,
type
=
"button"
)
btn_qrcode
=
Button
(
'qrcode'
,
title
=
'QRcode'
,
css_class
=
"btn-success"
,
type
=
"button"
)
btn_barcode_nop
=
Button
(
'barcode_nop'
,
title
=
'Barcode NOP'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_label
=
Button
(
'label'
,
title
=
_
(
'Print Label'
),
css_class
=
"btn-info"
,
type
=
"button"
)
btn_print_ttr
=
Button
(
'ttr'
,
title
=
_
(
'Receive'
),
css_class
=
"btn-info"
,
type
=
"button"
)
btn_barcode
=
Button
(
'barcode'
,
title
=
_
(
'Barcode'
),
css_class
=
"btn-success"
,
type
=
"button"
)
btn_qrcode
=
Button
(
'qrcode'
,
title
=
_
(
'QRcode'
),
css_class
=
"btn-success"
,
type
=
"button"
)
btn_barcode_nop
=
Button
(
'barcode_nop'
,
title
=
_
(
'Barcode NOP'
),
css_class
=
"btn-info"
,
type
=
"button"
)
btn_inquiry
=
Button
(
'inquiry'
,
title
=
'Inquiry'
,
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_invoice
=
Button
(
'invoice'
,
title
=
_
(
'Invoice'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_map
=
Button
(
'map'
,
title
=
_
(
'MAP'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_payment
=
Button
(
'payment'
,
title
=
'Payment'
,
css_class
=
"btn-success"
,
type
=
"submit"
)
btn_inquiry
=
Button
(
'inquiry'
,
title
=
_
(
'Inquiry'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_invoice
=
Button
(
'invoice'
,
title
=
_
(
'Invoice'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_map
=
Button
(
'map'
,
title
=
_
(
'MAP'
),
css_class
=
"btn-info"
,
type
=
"submit"
)
btn_payment
=
Button
(
'payment'
,
title
=
_
(
'Payment'
),
css_class
=
"btn-success"
,
type
=
"submit"
)
btn_accept
=
Button
(
'accept'
,
title
=
'Terima'
,
css_class
=
"btn-success"
)
btn_reject
=
Button
(
'reject'
,
title
=
'Tolak'
,
css_class
=
"btn-danger"
)
btn_accept
=
Button
(
'accept'
,
title
=
_
(
'Accept'
)
,
css_class
=
"btn-success"
)
btn_reject
=
Button
(
'reject'
,
title
=
_
(
'Reject'
)
,
css_class
=
"btn-danger"
)
btn_prev
=
Button
(
'prev'
,
title
=
'Kembali'
,
css_class
=
"btn-success"
)
btn_next
=
Button
(
'next'
,
title
=
'Lanjut'
,
css_class
=
"btn-success"
)
btn_prev
=
Button
(
'prev'
,
title
=
_
(
'Back'
)
,
css_class
=
"btn-success"
)
btn_next
=
Button
(
'next'
,
title
=
_
(
'Next'
)
,
css_class
=
"btn-success"
)
btn_send
=
Button
(
'send'
,
title
=
'Kirim'
,
css_class
=
"btn-success"
)
btn_search
=
Button
(
'search'
,
title
=
'Cari'
,
css_class
=
"btn-success"
)
btn_send
=
Button
(
'send'
,
title
=
_
(
'Send'
)
,
css_class
=
"btn-success"
)
btn_search
=
Button
(
'search'
,
title
=
_
(
'Search'
)
,
css_class
=
"btn-success"
)
btn_proses
=
Button
(
'proses'
,
title
=
'Proses'
,
css_class
=
"btn-info"
,
type
=
"button"
)
btn_proses
=
Button
(
'proses'
,
title
=
_
(
'Process'
),
css_class
=
"btn-info"
,
type
=
"button"
)
inquiry_button
=
[
btn_inquiry
,
btn_cancel
]
payment_button
=
[
btn_payment
,
btn_cancel
]
...
...
@@ -59,9 +68,10 @@ flow_2_buttons = [btn_prev, btn_next, btn_cancel]
pdf_txt_buttons
=
[
btn_pdf
,
btn_txt
,
btn_close
]
pdf_buttons
=
[
btn_pdf
,
btn_close
]
btn_login
=
Button
(
'login'
,
title
=
_
(
'Login'
),
css_class
=
"btn-success"
)
btn_register
=
Button
(
'register'
,
title
=
_
(
'Register'
),
css_class
=
"btn-success"
)
btn_password
=
Button
(
'password'
,
title
=
_
(
'Change Password'
),
css_class
=
"btn-danger"
)
btn_lost
=
Button
(
'lost'
,
title
=
_
(
'Lost Password'
),
css_class
=
"btn-danger"
)
btn_yes
=
Button
(
'yes'
,
title
=
_
(
'Yes'
),
css_class
=
"btn-success"
)
btn_no
=
Button
(
'no'
,
title
=
_
(
'No'
),
css_class
=
"btn-danger"
)
\ No newline at end of file
btn_login
=
Button
(
'login'
,
title
=
_
(
'Login'
),
css_class
=
"btn-success"
)
btn_register
=
Button
(
'register'
,
title
=
_
(
'Register'
),
css_class
=
"btn-success"
)
btn_password
=
Button
(
'password'
,
title
=
_
(
'Change Password'
),
css_class
=
"btn-danger"
)
btn_lost
=
Button
(
'lost'
,
title
=
_
(
'Lost Password'
),
css_class
=
"btn-danger"
)
btn_yes
=
Button
(
'yes'
,
title
=
_
(
'Yes'
),
css_class
=
"btn-success"
)
btn_no
=
Button
(
'no'
,
title
=
_
(
'No'
),
css_class
=
"btn-danger"
)
opensipkd/tools/locale/id/LC_MESSAGES/button.po
0 → 100644
View file @
f1ee9db
#
# Indonesian translations for PACKAGE package
# This file is distributed under the same license as the PACKAGE package.
# <aagusti@desktop-pa2epik.localdomain>, 2022.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
"POT-Creation-Date: 2022-07-30 20:02+0700\n"
"PO-Revision-Date: 2022-07-30 19:53+0700\n"
"Last-Translator: <aagusti@desktop-pa2epik.localdomain>\n"
"Language-Team: Indonesian\n"
"Language: id\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Lingua 4.15.0\n"
#: opensipkd/tools/buttons.py:6
msgid "Add"
msgstr "Tambah"
#: opensipkd/tools/buttons.py:7
msgid "View"
msgstr "Lihat"
#: opensipkd/tools/buttons.py:8
msgid "Edit"
msgstr "Koreksi"
#: opensipkd/tools/buttons.py:9
msgid "Delete"
msgstr "Hapus"
#: opensipkd/tools/buttons.py:10
msgid "Save"
msgstr "Simpan"
#: opensipkd/tools/buttons.py:11
msgid "Force"
msgstr "Paksa"
#: opensipkd/tools/buttons.py:12
msgid "Upload"
msgstr "Unggah"
#: opensipkd/tools/buttons.py:13
msgid "Filter"
msgstr "Saring"
#: opensipkd/tools/buttons.py:14
msgid "Cancel"
msgstr "Batal"
#: opensipkd/tools/buttons.py:15
msgid "Reset"
msgstr ""
#: opensipkd/tools/buttons.py:17
msgid "Close"
msgstr "Tutup"
#: opensipkd/tools/buttons.py:18
msgid "Print"
msgstr "Cetak"
#: opensipkd/tools/buttons.py:24
msgid "Print Label"
msgstr "Cetak label"
#: opensipkd/tools/buttons.py:26
msgid "Receive"
msgstr "Terima"
#: opensipkd/tools/buttons.py:28
msgid "Barcode"
msgstr ""
#: opensipkd/tools/buttons.py:30
msgid "QRcode"
msgstr ""
#: opensipkd/tools/buttons.py:32
msgid "Barcode NOP"
msgstr ""
#: opensipkd/tools/buttons.py:35
msgid "Inquiry"
msgstr "Pertanyaan"
#: opensipkd/tools/buttons.py:37
msgid "Invoice"
msgstr "Tagihan"
#: opensipkd/tools/buttons.py:39
msgid "MAP"
msgstr "Peta"
#: opensipkd/tools/buttons.py:40
msgid "Payment"
msgstr "Pembayaran"
#: opensipkd/tools/buttons.py:43
msgid "Accept"
msgstr "Terima"
#: opensipkd/tools/buttons.py:44
msgid "Reject"
msgstr "Tolak"
#: opensipkd/tools/buttons.py:46
msgid "Back"
msgstr "Kembali"
#: opensipkd/tools/buttons.py:47
msgid "Next"
msgstr "Lanjut"
#: opensipkd/tools/buttons.py:49
msgid "Send"
msgstr "Kirim"
#: opensipkd/tools/buttons.py:50
msgid "Search"
msgstr "Cari"
#: opensipkd/tools/buttons.py:52
msgid "Process"
msgstr "Proses"
#: opensipkd/tools/buttons.py:71
msgid "Login"
msgstr "Masuk"
#: opensipkd/tools/buttons.py:72
msgid "Register"
msgstr "Daftar"
#: opensipkd/tools/buttons.py:73
msgid "Change Password"
msgstr "Ubah Kata Sandi"
#: opensipkd/tools/buttons.py:75
msgid "Lost Password"
msgstr "Lupa Kata Sandi"
#: opensipkd/tools/buttons.py:76
msgid "Yes"
msgstr "Ya"
#: opensipkd/tools/buttons.py:77
msgid "No"
msgstr "Tidak"
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment