From: Jinkun Jang Date: Tue, 12 Mar 2013 16:52:01 +0000 (+0900) Subject: Tizen 2.1 base X-Git-Tag: 2.1b_release~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c265dcb4cc3ec7082c26e64748b2bb56fcce4399;p=platform%2Fcore%2Fsystem%2Fsystem-popup.git Tizen 2.1 base --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..1eb3c54 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,2 @@ +Giyeol Ok +Suchang Woo diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..bfa2f53 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +####### System-popup ############# +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(system-popup C) + +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +SET(EXEC_PREFIX "\${prefix}") +SET(LIBDIR "\${prefix}/lib") +SET(INCLUDEDIR "\${prefix}/include") + +# SUbmodules +ADD_SUBDIRECTORY(poweroff-popup) +ADD_SUBDIRECTORY(lowbatt-popup) +ADD_SUBDIRECTORY(lowmem-popup) +ADD_SUBDIRECTORY(usbotg-popup) +ADD_SUBDIRECTORY(usbotg-unmount-popup) +ADD_SUBDIRECTORY(mmc-popup) + +############## END ############## diff --git a/LICENSE.APLv2 b/LICENSE.APLv2 new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE.APLv2 @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..08a1d59 --- /dev/null +++ b/NOTICE @@ -0,0 +1,3 @@ +Copyright (c) Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, This software is licensed under Apache License, Version 2. +Please, see the LICENSE.APLv2 file for Apache License terms and conditions. diff --git a/data/lowbatt-popup.ini b/data/lowbatt-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/lowbatt-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/data/lowmem-popup.ini b/data/lowmem-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/lowmem-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/data/mmc-popup.ini b/data/mmc-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/mmc-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/data/org.tizen.lowbat-syspopup.png b/data/org.tizen.lowbat-syspopup.png new file mode 100755 index 0000000..ef74fd1 Binary files /dev/null and b/data/org.tizen.lowbat-syspopup.png differ diff --git a/data/org.tizen.lowbat-syspopup.xml b/data/org.tizen.lowbat-syspopup.xml new file mode 100755 index 0000000..f406090 --- /dev/null +++ b/data/org.tizen.lowbat-syspopup.xml @@ -0,0 +1,10 @@ + + + + Giyeol Ok + system-popup application (lowbatt popup) + + org.tizen.lowbat-syspopup.png + + + diff --git a/data/org.tizen.lowmem-syspopup.png b/data/org.tizen.lowmem-syspopup.png new file mode 100755 index 0000000..ef74fd1 Binary files /dev/null and b/data/org.tizen.lowmem-syspopup.png differ diff --git a/data/org.tizen.lowmem-syspopup.xml b/data/org.tizen.lowmem-syspopup.xml new file mode 100755 index 0000000..4d678f6 --- /dev/null +++ b/data/org.tizen.lowmem-syspopup.xml @@ -0,0 +1,10 @@ + + + + Giyeol Ok + system-popup application (lowmem popup) + + org.tizen.lowmem-syspopup.png + + + diff --git a/data/org.tizen.mmc-syspopup.xml b/data/org.tizen.mmc-syspopup.xml new file mode 100755 index 0000000..7b1809e --- /dev/null +++ b/data/org.tizen.mmc-syspopup.xml @@ -0,0 +1,9 @@ + + + + Giyeol Ok + system-popup application (mmc popup) + + + + diff --git a/data/org.tizen.poweroff-syspopup.png b/data/org.tizen.poweroff-syspopup.png new file mode 100755 index 0000000..ef74fd1 Binary files /dev/null and b/data/org.tizen.poweroff-syspopup.png differ diff --git a/data/org.tizen.poweroff-syspopup.xml b/data/org.tizen.poweroff-syspopup.xml new file mode 100755 index 0000000..3f9c2c5 --- /dev/null +++ b/data/org.tizen.poweroff-syspopup.xml @@ -0,0 +1,10 @@ + + + + Giyeol Ok + system-popup application (poweroff popup) + + org.tizen.poweroff-syspopup.png + + + diff --git a/data/org.tizen.usbotg-syspopup.png b/data/org.tizen.usbotg-syspopup.png new file mode 100644 index 0000000..ef74fd1 Binary files /dev/null and b/data/org.tizen.usbotg-syspopup.png differ diff --git a/data/org.tizen.usbotg-syspopup.xml b/data/org.tizen.usbotg-syspopup.xml new file mode 100755 index 0000000..55dd613 --- /dev/null +++ b/data/org.tizen.usbotg-syspopup.xml @@ -0,0 +1,10 @@ + + + + Giyeol Ok + system-popup application (usbotg popup) + + org.tizen.usbotg-syspopup.png + + + diff --git a/data/org.tizen.usbotg-unmount-popup.png b/data/org.tizen.usbotg-unmount-popup.png new file mode 100644 index 0000000..ef74fd1 Binary files /dev/null and b/data/org.tizen.usbotg-unmount-popup.png differ diff --git a/data/org.tizen.usbotg-unmount-popup.xml b/data/org.tizen.usbotg-unmount-popup.xml new file mode 100755 index 0000000..f403e11 --- /dev/null +++ b/data/org.tizen.usbotg-unmount-popup.xml @@ -0,0 +1,10 @@ + + + + Giyeol Ok + system-popup application (usbotg unmount popup) + + org.tizen.usbotg-unmount-popup.png + + + diff --git a/data/poweroff-popup.ini b/data/poweroff-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/poweroff-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/data/usb_icon.png b/data/usb_icon.png new file mode 100755 index 0000000..65e94dc Binary files /dev/null and b/data/usb_icon.png differ diff --git a/data/usbotg-popup.ini b/data/usbotg-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/usbotg-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/data/usbotg-unmount-popup.ini b/data/usbotg-unmount-popup.ini new file mode 100644 index 0000000..5abbace --- /dev/null +++ b/data/usbotg-unmount-popup.ini @@ -0,0 +1,2 @@ +[ProcessSetting] +BG_SCHEDULE=true diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..aa58bf5 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source:system-popup +Section: main +Priority: extra +Maintainer: Jonghoon Han Jinkun Jang Juhyun Kim DongGi Jang TAESOO JUN +Uploaders: Jinkun Jang +Build-Depends: debhelper (>=5),libevas-dev,libecore-dev,libethumb-dev,libelm-dev,libefreet-dev, libslp-sysman-dev,libslp-sysman-dev,libslp-sensor-dev,libappcore-efl-dev,libdevman-dev,libmm-sound-dev, libslp-utilx-dev, syspopup-dev, libslp-pm-dev, libnotification-dev,libslp-setting-dev +Standards-Version: 0.1.0 + +Package: org.tizen.poweroff-syspopup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Power off popup application + +Package: org.tizen.lowmem-syspopup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Low memory popup application + +Package: org.tizen.lowbat-syspopup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Low battery popup application + +Package: org.tizen.usbotg-syspopup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: USB otg popup application + +Package: org.tizen.usbotg-unmount-popup +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: USB otg unmount popup application + +Package: system-popup-dbg +Section: debug +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, org.tizen.poweroff-syspopup (= ${Source-Version}), org.tizen.lowmem-syspopup (= ${Source-Version}), org.tizen.lowbat-syspopup (= ${Source-Version}), org.tizen.usbotg-syspopup (= ${Source-Version}), org.tizen.usbotg-unmount-popup (= ${Source-Version}) +Description: System popup application (unstripped) diff --git a/debian/copyright b/debian/copyright new file mode 100755 index 0000000..8d1c8b6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1 @@ + diff --git a/debian/debhelper.log b/debian/debhelper.log new file mode 100755 index 0000000..4bf2059 --- /dev/null +++ b/debian/debhelper.log @@ -0,0 +1,4 @@ +dh_installdirs +dh_installchangelogs +dh_installdocs +dh_installexamples diff --git a/debian/org.tizen.lowbat-syspopup.install.in b/debian/org.tizen.lowbat-syspopup.install.in new file mode 100755 index 0000000..4ca3232 --- /dev/null +++ b/debian/org.tizen.lowbat-syspopup.install.in @@ -0,0 +1,5 @@ +/usr/apps/org.tizen.lowbat-syspopup/bin/lowbatt-popup +/usr/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt/lowbatt.edj +/usr/share/applications/org.tizen.lowbat-syspopup.desktop +/usr/share/process-info/lowbatt-popup.ini +/usr/apps/org.tizen.lowbat-syspopup/res/locale/* diff --git a/debian/org.tizen.lowmem-syspopup.install.in b/debian/org.tizen.lowmem-syspopup.install.in new file mode 100755 index 0000000..9d0415d --- /dev/null +++ b/debian/org.tizen.lowmem-syspopup.install.in @@ -0,0 +1,7 @@ +/usr/apps/org.tizen.lowmem-syspopup/bin/lowmem-popup +/usr/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.lowmem-syspopup/res/edje/lowmem/lowmem.edj +/usr/share/applications/org.tizen.lowmem-syspopup.desktop +/usr/share/process-info/lowmem-popup.ini +/usr/apps/org.tizen.lowmem-syspopup/res/locale/* + diff --git a/debian/org.tizen.poweroff-syspopup.install.in b/debian/org.tizen.poweroff-syspopup.install.in new file mode 100755 index 0000000..22a713c --- /dev/null +++ b/debian/org.tizen.poweroff-syspopup.install.in @@ -0,0 +1,6 @@ +/usr/apps/org.tizen.poweroff-syspopup/bin/poweroff-popup +/usr/apps/org.tizen.poweroff-syspopup/res/edje/poweroff/poweroff.edj +/usr/share/applications/org.tizen.poweroff-syspopup.desktop +/usr/share/process-info/poweroff-popup.ini +/usr/apps/org.tizen.poweroff-syspopup/res/locale/* + diff --git a/debian/org.tizen.usbotg-syspopup.install.in b/debian/org.tizen.usbotg-syspopup.install.in new file mode 100644 index 0000000..fbce15c --- /dev/null +++ b/debian/org.tizen.usbotg-syspopup.install.in @@ -0,0 +1,6 @@ +/usr/apps/org.tizen.usbotg-syspopup/bin/usbotg-popup +/usr/apps/org.tizen.usbotg-syspopup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.usbotg-syspopup/res/edje/usbotg/usbotg.edj +/usr/share/applications/org.tizen.usbotg-syspopup.desktop +/usr/share/process-info/usbotg-popup.ini +/usr/apps/org.tizen.usbotg-syspopup/res/locale/* diff --git a/debian/org.tizen.usbotg-unmount-popup.install.in b/debian/org.tizen.usbotg-unmount-popup.install.in new file mode 100644 index 0000000..c5d807e --- /dev/null +++ b/debian/org.tizen.usbotg-unmount-popup.install.in @@ -0,0 +1,6 @@ +/usr/apps/org.tizen.usbotg-unmount-popup/bin/usbotg-unmount-popup +/usr/apps/org.tizen.usbotg-unmount-popup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.usbotg-unmount-popup/res/edje/usbotg/usbotg-unmount.edj +/usr/share/applications/org.tizen.usbotg-unmount-popup.desktop +/usr/share/process-info/usbotg-unmount-popup.ini +/usr/apps/org.tizen.usbotg-unmount-popup/res/locale/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..9b3fa57 --- /dev/null +++ b/debian/rules @@ -0,0 +1,143 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS ?= -Wall -g +CXXFLAGS ?= -Wall -g +LDFLAGS ?= --Wl,--rpath=$(PREFIX)/lib --Wl,--as-needed +PREFIX ?= /usr +DATADIR ?= /opt + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) + + touch CMakeFiles/configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/wavplayer.sgml > wavplayer.1 + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + cat $$f > $${f%.in}; \ + sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \ + sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ + done + + + touch CMakeFiles/$@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + rm -rf CMakeCache.txt + rm -rf CMakeFiles + rm -rf cmake_install.cmake + rm -rf Makefile + rm -rf install_manifest.txt + rm -rf *.so + rm -rf *.edj + rm -rf data/*.desktop + for i in lowbatt-popup lowmem-popup poweroff-popup usbotg-popup usbotg-unmount-popup; do \ + rm -rf $$i/CMakeCache.txt; \ + rm -rf $$i/CMakeFiles; \ + rm -rf $$i/cmake_install.cmake; \ + rm -rf $$i/Makefile; \ + rm -rf $$i/install_manifest.txt; \ + rm -rf $$i/*.so; \ + rm -rf $$i/*.edj; \ + rm -rf $$i/$$i; \ + for d in `find $(CURDIR) -name "po_*"`; do \ + rm -rf $$d/*.mo; \ + done \ + done \ + + for d in `find $(CURDIR) -name "po_*"`; do \ + rm -rf $$d/CMakeCache.txt; \ + rm -rf $$d/CMakeFiles; \ + rm -rf $$d/cmake_install.cmake; \ + rm -rf $$d/install_manifest.txt; \ + rm -rf $$d/Makefile; \ + done + + for f in `find $(CURDIR)/debian/ -name "*.in"`; do \ + rm -f $${f%.in}; \ + done + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wavplayer. + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --sourcedir=debian/tmp +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link +# Commented dh_strip +# dh_strip +# Added debug here + dh_strip --dbg-package=system-popup-dbg + dh_compress + dh_fixperms +# dh_perl + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/edcs/lowbatt.edc b/edcs/lowbatt.edc new file mode 100644 index 0000000..f890d87 --- /dev/null +++ b/edcs/lowbatt.edc @@ -0,0 +1,127 @@ +#define MAIN_W 480 +#define MAIN_H 800 +#define POPUP_MAIN_W 458 +#define POPUP_MAIN_H 240 + +collections +{ + group + { + + name: "main"; + min: MAIN_W MAIN_H; + parts { + part + { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0 0; offset: 0 0; } + rel2 { relative: 1 1; offset: -1 -1; } + color: 0 0 0 100; + } + } + + part + { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + + part + { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs { + program + { + name: "click_exit"; + source: "background"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "update_clicked" "background"; + } + } + } + + + group + { + name: "popup"; + min: POPUP_MAIN_W POPUP_MAIN_H; + parts + { + part { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + color: 0 0 0 0; + } + } + + part { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 0 0 0 0; + } + } + + part { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "GP_Latin"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs + { + program + { + name: "bg_click"; + signal: "mouse,down,1"; + source: "bg"; + action, SIGNAL_EMIT "background_click" "background"; + } + + } + + } + +} diff --git a/edcs/lowmem.edc b/edcs/lowmem.edc new file mode 100644 index 0000000..f890d87 --- /dev/null +++ b/edcs/lowmem.edc @@ -0,0 +1,127 @@ +#define MAIN_W 480 +#define MAIN_H 800 +#define POPUP_MAIN_W 458 +#define POPUP_MAIN_H 240 + +collections +{ + group + { + + name: "main"; + min: MAIN_W MAIN_H; + parts { + part + { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0 0; offset: 0 0; } + rel2 { relative: 1 1; offset: -1 -1; } + color: 0 0 0 100; + } + } + + part + { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + + part + { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs { + program + { + name: "click_exit"; + source: "background"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "update_clicked" "background"; + } + } + } + + + group + { + name: "popup"; + min: POPUP_MAIN_W POPUP_MAIN_H; + parts + { + part { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + color: 0 0 0 0; + } + } + + part { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 0 0 0 0; + } + } + + part { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "GP_Latin"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs + { + program + { + name: "bg_click"; + signal: "mouse,down,1"; + source: "bg"; + action, SIGNAL_EMIT "background_click" "background"; + } + + } + + } + +} diff --git a/edcs/poweroff.edc b/edcs/poweroff.edc new file mode 100644 index 0000000..64e3be0 --- /dev/null +++ b/edcs/poweroff.edc @@ -0,0 +1,102 @@ +collections { + group { name: "elm/popup/content/liststyle_poweroff"; + parts{ + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + align: 0.0 0.0; + min: 1 1; + max: 1 1; + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; + min: 615 300; + max: 615 300; + align: 0.5 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to:"left_top_padding"; + } + rel2 { + relative: 0.0 1.0; + to:"right_padding"; + } + } + } + part { name: "right_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 1.0 0.5; + min: 1 1; + rel1 { + relative: 1.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + } + } + +group { name: "elm/popup/content/liststyle_poweroff_simple"; + parts{ + part { name: "left_top_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + align: 0.0 0.0; + min: 1 1; + max: 1 1; + } + } + part{ name:"elm.swallow.content"; + type: SWALLOW; + scale : 1; + description { state: "default" 0.0; + min: 615 300; + max: 615 300; + align: 0.5 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to:"left_top_padding"; + } + rel2 { + relative: 0.0 1.0; + to:"right_padding"; + } + } + } + part { name: "right_padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + visible: 0; + align: 1.0 0.5; + min: 1 1; + rel1 { + relative: 1.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + } + } + } + } + +} diff --git a/edcs/usbotg-unmount.edc b/edcs/usbotg-unmount.edc new file mode 100644 index 0000000..c82923c --- /dev/null +++ b/edcs/usbotg-unmount.edc @@ -0,0 +1,124 @@ +#define MAIN_W 480 +#define MAIN_H 800 +#define POPUP_MAIN_W 458 +#define POPUP_MAIN_H 240 + +collections +{ + group + { + + name: "main"; + min: MAIN_W MAIN_H; + parts { + part + { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0 0; offset: 0 0; } + rel2 { relative: 1 1; offset: -1 -1; } + color: 0 0 0 100; + } + } + + part + { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + + part + { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs { + program + { + name: "click_exit"; + source: "background"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "update_clicked" "background"; + } + } + } + + + group + { + name: "popup"; + min: POPUP_MAIN_W POPUP_MAIN_H; + parts + { + part { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + color: 0 0 0 0; + } + } + + part { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 0 0 0 0; + } + } + + part { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "GP_Latin"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs + { + program + { + name: "bg_click"; + signal: "mouse,down,1"; + source: "bg"; + action, SIGNAL_EMIT "background_click" "background"; + } + } + } +} diff --git a/edcs/usbotg.edc b/edcs/usbotg.edc new file mode 100644 index 0000000..c82923c --- /dev/null +++ b/edcs/usbotg.edc @@ -0,0 +1,124 @@ +#define MAIN_W 480 +#define MAIN_H 800 +#define POPUP_MAIN_W 458 +#define POPUP_MAIN_H 240 + +collections +{ + group + { + + name: "main"; + min: MAIN_W MAIN_H; + parts { + part + { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0 0; offset: 0 0; } + rel2 { relative: 1 1; offset: -1 -1; } + color: 0 0 0 100; + } + } + + part + { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + + part + { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs { + program + { + name: "click_exit"; + source: "background"; + signal: "mouse,clicked,1"; + action: SIGNAL_EMIT "update_clicked" "background"; + } + } + } + + + group + { + name: "popup"; + min: POPUP_MAIN_W POPUP_MAIN_H; + parts + { + part { + name: "background"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; offset: 0 0; } + rel2 { relative: 1.0 1.0; offset: -1 -1; } + color: 0 0 0 0; + } + } + + part { + name: "txt_title"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: background; } + rel2 { relative: 1.0 0.5; to: background; } + text { text_class: "tc_default"; align: 0.5 0.5; } + color: 0 0 0 0; + } + } + + part { + name: "txt_mesg"; + type: TEXT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.5; to: background; } + rel2 { relative: 1.0 1.0; to: background; } + text { text_class: "GP_Latin"; align: 0.5 0.5; } + color: 255 255 255 255; + } + } + } + + programs + { + program + { + name: "bg_click"; + signal: "mouse,down,1"; + source: "bg"; + action, SIGNAL_EMIT "background_click" "background"; + } + } + } +} diff --git a/images/01_cont_popup_bottom_center.png b/images/01_cont_popup_bottom_center.png new file mode 100644 index 0000000..dd71100 Binary files /dev/null and b/images/01_cont_popup_bottom_center.png differ diff --git a/images/01_cont_popup_bottom_left.png b/images/01_cont_popup_bottom_left.png new file mode 100644 index 0000000..fb7aff1 Binary files /dev/null and b/images/01_cont_popup_bottom_left.png differ diff --git a/images/01_cont_popup_bottom_right.png b/images/01_cont_popup_bottom_right.png new file mode 100644 index 0000000..f3b877c Binary files /dev/null and b/images/01_cont_popup_bottom_right.png differ diff --git a/images/01_cont_popup_center_bottom.png b/images/01_cont_popup_center_bottom.png new file mode 100644 index 0000000..f8dcbf3 Binary files /dev/null and b/images/01_cont_popup_center_bottom.png differ diff --git a/images/01_cont_popup_center_top.png b/images/01_cont_popup_center_top.png new file mode 100644 index 0000000..a5af0e6 Binary files /dev/null and b/images/01_cont_popup_center_top.png differ diff --git a/images/01_cont_popup_icon_bg.png b/images/01_cont_popup_icon_bg.png new file mode 100644 index 0000000..e1fb8a8 Binary files /dev/null and b/images/01_cont_popup_icon_bg.png differ diff --git a/images/01_cont_popup_left_bottom.png b/images/01_cont_popup_left_bottom.png new file mode 100644 index 0000000..b403443 Binary files /dev/null and b/images/01_cont_popup_left_bottom.png differ diff --git a/images/01_cont_popup_left_center.png b/images/01_cont_popup_left_center.png new file mode 100644 index 0000000..8ea37a5 Binary files /dev/null and b/images/01_cont_popup_left_center.png differ diff --git a/images/01_cont_popup_left_mid.png b/images/01_cont_popup_left_mid.png new file mode 100644 index 0000000..b602791 Binary files /dev/null and b/images/01_cont_popup_left_mid.png differ diff --git a/images/01_cont_popup_left_top.png b/images/01_cont_popup_left_top.png new file mode 100644 index 0000000..3db7727 Binary files /dev/null and b/images/01_cont_popup_left_top.png differ diff --git a/images/01_cont_popup_right_bottom.png b/images/01_cont_popup_right_bottom.png new file mode 100644 index 0000000..373def0 Binary files /dev/null and b/images/01_cont_popup_right_bottom.png differ diff --git a/images/01_cont_popup_right_center.png b/images/01_cont_popup_right_center.png new file mode 100644 index 0000000..eb26ee9 Binary files /dev/null and b/images/01_cont_popup_right_center.png differ diff --git a/images/01_cont_popup_right_mid.png b/images/01_cont_popup_right_mid.png new file mode 100644 index 0000000..ac8c410 Binary files /dev/null and b/images/01_cont_popup_right_mid.png differ diff --git a/images/01_cont_popup_right_top.png b/images/01_cont_popup_right_top.png new file mode 100644 index 0000000..93a8920 Binary files /dev/null and b/images/01_cont_popup_right_top.png differ diff --git a/images/01_cont_popup_tail_bottom.png b/images/01_cont_popup_tail_bottom.png new file mode 100644 index 0000000..83ee153 Binary files /dev/null and b/images/01_cont_popup_tail_bottom.png differ diff --git a/images/01_cont_popup_tail_left.png b/images/01_cont_popup_tail_left.png new file mode 100644 index 0000000..64aa6c1 Binary files /dev/null and b/images/01_cont_popup_tail_left.png differ diff --git a/images/01_cont_popup_tail_right.png b/images/01_cont_popup_tail_right.png new file mode 100644 index 0000000..f9d49b3 Binary files /dev/null and b/images/01_cont_popup_tail_right.png differ diff --git a/images/01_cont_popup_tail_top.png b/images/01_cont_popup_tail_top.png new file mode 100644 index 0000000..f4f7b79 Binary files /dev/null and b/images/01_cont_popup_tail_top.png differ diff --git a/images/01_cont_popup_top_center.png b/images/01_cont_popup_top_center.png new file mode 100644 index 0000000..dd0e874 Binary files /dev/null and b/images/01_cont_popup_top_center.png differ diff --git a/images/01_cont_popup_top_left.png b/images/01_cont_popup_top_left.png new file mode 100644 index 0000000..f2f1231 Binary files /dev/null and b/images/01_cont_popup_top_left.png differ diff --git a/images/01_cont_popup_top_right.png b/images/01_cont_popup_top_right.png new file mode 100644 index 0000000..db92567 Binary files /dev/null and b/images/01_cont_popup_top_right.png differ diff --git a/images/01_popup_bg.png b/images/01_popup_bg.png new file mode 100644 index 0000000..c1f1632 Binary files /dev/null and b/images/01_popup_bg.png differ diff --git a/images/01_popup_bg_bottom.png b/images/01_popup_bg_bottom.png new file mode 100644 index 0000000..ce73680 Binary files /dev/null and b/images/01_popup_bg_bottom.png differ diff --git a/images/01_popup_bg_middle.png b/images/01_popup_bg_middle.png new file mode 100644 index 0000000..a1a0715 Binary files /dev/null and b/images/01_popup_bg_middle.png differ diff --git a/images/01_popup_bg_top.png b/images/01_popup_bg_top.png new file mode 100644 index 0000000..a4eb3a7 Binary files /dev/null and b/images/01_popup_bg_top.png differ diff --git a/images/01_popup_button_gray.png b/images/01_popup_button_gray.png new file mode 100644 index 0000000..f2d0079 Binary files /dev/null and b/images/01_popup_button_gray.png differ diff --git a/images/01_popup_button_gray_c.png b/images/01_popup_button_gray_c.png new file mode 100644 index 0000000..d09b26c Binary files /dev/null and b/images/01_popup_button_gray_c.png differ diff --git a/images/01_popup_button_gray_dim_c.png b/images/01_popup_button_gray_dim_c.png new file mode 100644 index 0000000..46fbf02 Binary files /dev/null and b/images/01_popup_button_gray_dim_c.png differ diff --git a/images/01_popup_button_gray_dim_l.png b/images/01_popup_button_gray_dim_l.png new file mode 100644 index 0000000..420008c Binary files /dev/null and b/images/01_popup_button_gray_dim_l.png differ diff --git a/images/01_popup_button_gray_dim_r.png b/images/01_popup_button_gray_dim_r.png new file mode 100644 index 0000000..f3c5a22 Binary files /dev/null and b/images/01_popup_button_gray_dim_r.png differ diff --git a/images/01_popup_button_gray_l.png b/images/01_popup_button_gray_l.png new file mode 100644 index 0000000..8e2a36c Binary files /dev/null and b/images/01_popup_button_gray_l.png differ diff --git a/images/01_popup_button_gray_press_c.png b/images/01_popup_button_gray_press_c.png new file mode 100644 index 0000000..9e25350 Binary files /dev/null and b/images/01_popup_button_gray_press_c.png differ diff --git a/images/01_popup_button_gray_press_l.png b/images/01_popup_button_gray_press_l.png new file mode 100644 index 0000000..c7cd300 Binary files /dev/null and b/images/01_popup_button_gray_press_l.png differ diff --git a/images/01_popup_button_gray_press_r.png b/images/01_popup_button_gray_press_r.png new file mode 100644 index 0000000..208365e Binary files /dev/null and b/images/01_popup_button_gray_press_r.png differ diff --git a/images/01_popup_button_gray_r.png b/images/01_popup_button_gray_r.png new file mode 100644 index 0000000..01c0efd Binary files /dev/null and b/images/01_popup_button_gray_r.png differ diff --git a/images/01_popup_progress_loading_blue_02_bg.png b/images/01_popup_progress_loading_blue_02_bg.png new file mode 100644 index 0000000..d281058 Binary files /dev/null and b/images/01_popup_progress_loading_blue_02_bg.png differ diff --git a/images/01_popup_progress_loading_blue_91_bg.png b/images/01_popup_progress_loading_blue_91_bg.png new file mode 100644 index 0000000..d8cf41c Binary files /dev/null and b/images/01_popup_progress_loading_blue_91_bg.png differ diff --git a/images/01_popup_progress_loading_orange_02_bg.png b/images/01_popup_progress_loading_orange_02_bg.png new file mode 100644 index 0000000..3ae13a5 Binary files /dev/null and b/images/01_popup_progress_loading_orange_02_bg.png differ diff --git a/images/01_popup_progress_loading_orange_91_bg.png b/images/01_popup_progress_loading_orange_91_bg.png new file mode 100644 index 0000000..d76bca6 Binary files /dev/null and b/images/01_popup_progress_loading_orange_91_bg.png differ diff --git a/images/01_popup_scrollbar_bg_bottom.png b/images/01_popup_scrollbar_bg_bottom.png new file mode 100644 index 0000000..7076c9a Binary files /dev/null and b/images/01_popup_scrollbar_bg_bottom.png differ diff --git a/images/01_popup_scrollbar_bg_middle.png b/images/01_popup_scrollbar_bg_middle.png new file mode 100644 index 0000000..2a83440 Binary files /dev/null and b/images/01_popup_scrollbar_bg_middle.png differ diff --git a/images/01_popup_scrollbar_bg_top.png b/images/01_popup_scrollbar_bg_top.png new file mode 100644 index 0000000..b4d36d8 Binary files /dev/null and b/images/01_popup_scrollbar_bg_top.png differ diff --git a/images/PUT_IMAGES_HERE b/images/PUT_IMAGES_HERE new file mode 100644 index 0000000..e69de29 diff --git a/lowbatt-popup/CMakeLists.txt b/lowbatt-popup/CMakeLists.txt new file mode 100755 index 0000000..ee81c01 --- /dev/null +++ b/lowbatt-popup/CMakeLists.txt @@ -0,0 +1,68 @@ + +#################### Low-battery ############################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(lowbatt-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/lowbatt-popup/src/lowbatt.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/lowbatt-popup) +INCLUDE_DIRECTORIES(/usr/include/svi) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound notification sysman) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-lsvi") + +ADD_CUSTOM_TARGET(lowbatt.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/../images + ${CMAKE_SOURCE_DIR}/edcs/lowbatt.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/lowbatt.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edcs/lowbatt.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} lowbatt.edj) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.lowbat-syspopup/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/lowbatt.edj DESTINATION /usr/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowbat-syspopup.png DESTINATION /usr/apps/org.tizen.lowbat-syspopup/res/icon) +# install manifest xml file + +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowbat-syspopup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_lowbatt) + +############################################################### + + diff --git a/lowbatt-popup/po_lowbatt/CMakeLists.txt b/lowbatt-popup/po_lowbatt/CMakeLists.txt new file mode 100644 index 0000000..5e8695d --- /dev/null +++ b/lowbatt-popup/po_lowbatt/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.lowbat-syspopup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po_lowbatt ALL DEPENDS ${moFiles}) diff --git a/lowbatt-popup/po_lowbatt/ar.po b/lowbatt-popup/po_lowbatt/ar.po new file mode 100755 index 0000000..cd292f5 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ar.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "تم إيقاف الشحن بسبب ارتفاع الحرارة" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "البطارية ضعيفة" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "البطارية منخفضة. سيتم إيقاف تشغيل الهاتف" + diff --git a/lowbatt-popup/po_lowbatt/az.po b/lowbatt-popup/po_lowbatt/az.po new file mode 100755 index 0000000..efe1531 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/az.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Həddindən artıq yüksək tempratura görə yükləmə dayandırıldı" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batareya zəifdir" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batareya azdır. Telefon sönəcək" + diff --git a/lowbatt-popup/po_lowbatt/bg.po b/lowbatt-popup/po_lowbatt/bg.po new file mode 100755 index 0000000..fc087cd --- /dev/null +++ b/lowbatt-popup/po_lowbatt/bg.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Прекъснато зареждане поради екстремни температури" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Изтощена батерия" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Изтощена батерия. Телефонът ще се изключи" + diff --git a/lowbatt-popup/po_lowbatt/ca.po b/lowbatt-popup/po_lowbatt/ca.po new file mode 100755 index 0000000..e10e773 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ca.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Càrrega en pausa a causa d'una alta temperatura" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Bateria baixa" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Bateria baixa. El telèfon s'apagarà" + diff --git a/lowbatt-popup/po_lowbatt/cs.po b/lowbatt-popup/po_lowbatt/cs.po new file mode 100755 index 0000000..ac94bfc --- /dev/null +++ b/lowbatt-popup/po_lowbatt/cs.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Nabíjení bylo pozastaveno kvůli nepřiměřené teplotě" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Vybitá baterie" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Vybitá baterie. Telefon se vypne" + diff --git a/lowbatt-popup/po_lowbatt/da.po b/lowbatt-popup/po_lowbatt/da.po new file mode 100755 index 0000000..cae5a3b --- /dev/null +++ b/lowbatt-popup/po_lowbatt/da.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Opladning standset på grund af høj temperatur" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Lavt batteriniveau" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Lavt batteriniveau. Telefon lukkes" + diff --git a/lowbatt-popup/po_lowbatt/de_DE.po b/lowbatt-popup/po_lowbatt/de_DE.po new file mode 100644 index 0000000..223992c --- /dev/null +++ b/lowbatt-popup/po_lowbatt/de_DE.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Laden aufgrund extremer Temperatur unterbrochen" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Akku fast leer" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Akku leer. Gerät wird heruntergefahren" + diff --git a/lowbatt-popup/po_lowbatt/el_GR.po b/lowbatt-popup/po_lowbatt/el_GR.po new file mode 100644 index 0000000..0f5b1bc --- /dev/null +++ b/lowbatt-popup/po_lowbatt/el_GR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Παύση φόρτισης λόγω ακραίας θερμοκρασίας" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Χαμηλή μπαταρία" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Χαμηλή στάθμη μπαταρίας. Το τηλέφωνο θα απενεργοποιηθεί" + diff --git a/lowbatt-popup/po_lowbatt/en.po b/lowbatt-popup/po_lowbatt/en.po new file mode 100644 index 0000000..9c8f331 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/en.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Charging paused due to extreme temperature" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Low battery" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Low battery. Phone will shut down" + diff --git a/lowbatt-popup/po_lowbatt/en_PH.po b/lowbatt-popup/po_lowbatt/en_PH.po new file mode 100755 index 0000000..9c8f331 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/en_PH.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Charging paused due to extreme temperature" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Low battery" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Low battery. Phone will shut down" + diff --git a/lowbatt-popup/po_lowbatt/en_US.po b/lowbatt-popup/po_lowbatt/en_US.po new file mode 100755 index 0000000..9c8f331 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/en_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Charging paused due to extreme temperature" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Low battery" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Low battery. Phone will shut down" + diff --git a/lowbatt-popup/po_lowbatt/es_ES.po b/lowbatt-popup/po_lowbatt/es_ES.po new file mode 100644 index 0000000..cb3d53f --- /dev/null +++ b/lowbatt-popup/po_lowbatt/es_ES.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "La carga se detuvo por temperatura alta" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batería baja" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batería baja. El teléfono se apagará" + diff --git a/lowbatt-popup/po_lowbatt/es_US.po b/lowbatt-popup/po_lowbatt/es_US.po new file mode 100755 index 0000000..c5615f1 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/es_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "La carga se detuvo por temperatura alta" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batería baja" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batería baja. El teléfono se apagará" + diff --git a/lowbatt-popup/po_lowbatt/et.po b/lowbatt-popup/po_lowbatt/et.po new file mode 100755 index 0000000..a228bf9 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/et.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Laadimine on kõrge temperatuuri tõttu peatatud" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Aku on peaaegu tühi" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Aku on tühi. Telefon lülitub välja" + diff --git a/lowbatt-popup/po_lowbatt/eu.po b/lowbatt-popup/po_lowbatt/eu.po new file mode 100755 index 0000000..33087be --- /dev/null +++ b/lowbatt-popup/po_lowbatt/eu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Karga eten da tenperatura altua dela eta" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Bateria gutxi" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Bateria baxu. Telefonoa itzaliko da" + diff --git a/lowbatt-popup/po_lowbatt/fi.po b/lowbatt-popup/po_lowbatt/fi.po new file mode 100755 index 0000000..b6fcaff --- /dev/null +++ b/lowbatt-popup/po_lowbatt/fi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Lataus keskeytyi liian korkean tai alhaisen lämpötilan vuoksi" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Akku on loppumassa" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Akku lopussa. Puhelin sammutetaan" + diff --git a/lowbatt-popup/po_lowbatt/fr_CA.po b/lowbatt-popup/po_lowbatt/fr_CA.po new file mode 100755 index 0000000..b92e6be --- /dev/null +++ b/lowbatt-popup/po_lowbatt/fr_CA.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Chargement interrompu.Température trop élevée" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Pile faible" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Pile faible. Le téléphone va s'éteindre" + diff --git a/lowbatt-popup/po_lowbatt/fr_FR.po b/lowbatt-popup/po_lowbatt/fr_FR.po new file mode 100644 index 0000000..389e306 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/fr_FR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Chargement interrompu. Température trop élevée" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batterie faible" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batterie faible. Le téléphone va s'éteindre" + diff --git a/lowbatt-popup/po_lowbatt/ga.po b/lowbatt-popup/po_lowbatt/ga.po new file mode 100755 index 0000000..bd908b2 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ga.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Cuireadh luchtú ar sos mar gheall ar theocht fhoircneach" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Ceallra lag" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Ceallra lag. Múchfar an fón" + diff --git a/lowbatt-popup/po_lowbatt/gl.po b/lowbatt-popup/po_lowbatt/gl.po new file mode 100755 index 0000000..3b35956 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/gl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Carga detida debido á temperatura extrema" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batería baixa" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batería baixa. O teléfono vaise apagar" + diff --git a/lowbatt-popup/po_lowbatt/hi.po b/lowbatt-popup/po_lowbatt/hi.po new file mode 100755 index 0000000..3dfcbfe --- /dev/null +++ b/lowbatt-popup/po_lowbatt/hi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_COM_SK_OK" +msgstr "ठीक" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "बहुत अधिक तापमान के कारण चार्ज रुकना" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "बैटरी कम है" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "निम्न बैटरी. फ़ोन बंद हो जाएगा" + diff --git a/lowbatt-popup/po_lowbatt/hr.po b/lowbatt-popup/po_lowbatt/hr.po new file mode 100755 index 0000000..7f37c06 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/hr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Punjenje zaustavljeno zbog previsoke temperature" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Baterija skoro prazna" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Prazna baterija. Telefon se isključuje" + diff --git a/lowbatt-popup/po_lowbatt/hu.po b/lowbatt-popup/po_lowbatt/hu.po new file mode 100755 index 0000000..4a0e8f6 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/hu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Töltés leállítva a magas hőmérséklet miatt" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Az akkumulátor lemerült" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Az akkumulátor lemerült. A telefon kikapcsol" + diff --git a/lowbatt-popup/po_lowbatt/hy.po b/lowbatt-popup/po_lowbatt/hy.po new file mode 100755 index 0000000..3181317 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/hy.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Լիցքավորումը դադարեցված է ծայրահեղ ջերմաստիճանի պատճառով" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Մարտկոցի լիցքը թույլ է" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Մարտկոցը նստած է: Հեռախոսը կանջատվի" + diff --git a/lowbatt-popup/po_lowbatt/is.po b/lowbatt-popup/po_lowbatt/is.po new file mode 100755 index 0000000..dc4c473 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/is.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Bið á hleðslu vegna mikils hita" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Rafhlaðan er að tæmast" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Rafhlaðan er að tæmast. Slökkt verður á símanum" + diff --git a/lowbatt-popup/po_lowbatt/it_IT.po b/lowbatt-popup/po_lowbatt/it_IT.po new file mode 100644 index 0000000..0290323 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/it_IT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Carica interrotta per surriscaldamento" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batteria scarica" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batteria scarica. Il telefono si spegnerà" + diff --git a/lowbatt-popup/po_lowbatt/ja_JP.po b/lowbatt-popup/po_lowbatt/ja_JP.po new file mode 100644 index 0000000..564b9ec --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ja_JP.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "極端な​温度​に​より​充電​を​中止​しました" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "バッテリー残量不足" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "電池残量が不足しています。電源が切れます" + diff --git a/lowbatt-popup/po_lowbatt/ka.po b/lowbatt-popup/po_lowbatt/ka.po new file mode 100755 index 0000000..735f4ea --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ka.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "დამუხტვა შეწყდა ექსტრემალური ტემპერატურის გამო" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "კვების ელემენტი იცლება" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "კვების ელემენტი იცლება. ტელეფონი გამოირთვება" + diff --git a/lowbatt-popup/po_lowbatt/kk.po b/lowbatt-popup/po_lowbatt/kk.po new file mode 100755 index 0000000..7bc5bd4 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/kk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Зарядтау температураға байланысты уақытша тоқтатылды" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Батареяның заряды аз" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Батарея заряды аз. Телефон өшеді" + diff --git a/lowbatt-popup/po_lowbatt/ko_KR.po b/lowbatt-popup/po_lowbatt/ko_KR.po new file mode 100644 index 0000000..1308f50 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ko_KR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "온도가 너무 높거나 낮아 충전이 중지되었습니다" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "배터리가 부족합니다" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "배터리가 부족하여 휴대폰 전원이 꺼집니다" + diff --git a/lowbatt-popup/po_lowbatt/lt.po b/lowbatt-popup/po_lowbatt/lt.po new file mode 100755 index 0000000..7a86963 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/lt.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Įkrovimas sustabdytas dėl labai aukštos temperatūros" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Senka akumuliatorius!" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Akumuliatorius senka. Telefonas išsijungs" + diff --git a/lowbatt-popup/po_lowbatt/lv.po b/lowbatt-popup/po_lowbatt/lv.po new file mode 100755 index 0000000..118edd6 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/lv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Uzlāde pārtraukta pārāk augstas temperatūras dēļ" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Akumulators gandrīz tukšs" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Tukšs akumulators. Tālrunis izslēgsies" + diff --git a/lowbatt-popup/po_lowbatt/mk.po b/lowbatt-popup/po_lowbatt/mk.po new file mode 100755 index 0000000..8b68906 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/mk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Полнењето е\nпрекинато.\nНесоодветна\nтемпература" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Батеријата е празна" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Батеријата е празна. Телефонот ќе се исклучи" + diff --git a/lowbatt-popup/po_lowbatt/nb.po b/lowbatt-popup/po_lowbatt/nb.po new file mode 100755 index 0000000..2836c0e --- /dev/null +++ b/lowbatt-popup/po_lowbatt/nb.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Opplading satt på pause grunnet ekstrem temperatur" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Lavt batterinivå" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Lavt batteri. Telefonen slåes av" + diff --git a/lowbatt-popup/po_lowbatt/nl_NL.po b/lowbatt-popup/po_lowbatt/nl_NL.po new file mode 100644 index 0000000..bcae501 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/nl_NL.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Opladen gestopt vanwege te hoge of te lage temperatuur" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batterij bijna leeg" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batterij bijna leeg. Uw telefoon wordt uitgeschakeld." + diff --git a/lowbatt-popup/po_lowbatt/pl.po b/lowbatt-popup/po_lowbatt/pl.po new file mode 100755 index 0000000..8cc4f70 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/pl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Ładowanie wstrzymane - temp. nieprawidłowa" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Bateria rozładowana" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Bateria rozładowana. Telefon zostanie wyłączony" + diff --git a/lowbatt-popup/po_lowbatt/pt_BR.po b/lowbatt-popup/po_lowbatt/pt_BR.po new file mode 100755 index 0000000..ea53322 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/pt_BR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Carregamento interrompido devido a excesso de temperatura" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Bateria fraca" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Bateria fraca. O telefone será desligado" + diff --git a/lowbatt-popup/po_lowbatt/pt_PT.po b/lowbatt-popup/po_lowbatt/pt_PT.po new file mode 100644 index 0000000..aae5e31 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/pt_PT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Carregamento interrompido devido a excesso de temperatura" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Bateria fraca" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Bateria fraca. O telefone será encerrado" + diff --git a/lowbatt-popup/po_lowbatt/ro.po b/lowbatt-popup/po_lowbatt/ro.po new file mode 100755 index 0000000..95342b5 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ro.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Încărcare oprită din cauza temperaturii excesive" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Baterie descărcată" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Baterie descărcată. Telefonul se va închide" + diff --git a/lowbatt-popup/po_lowbatt/ru_RU.po b/lowbatt-popup/po_lowbatt/ru_RU.po new file mode 100644 index 0000000..cd50a89 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/ru_RU.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Зарядка остановлена из-за температуры" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Аккумулятор разряжен" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Низкий заряд батареи. Телефон будет выключен" + diff --git a/lowbatt-popup/po_lowbatt/sk.po b/lowbatt-popup/po_lowbatt/sk.po new file mode 100755 index 0000000..e021b1c --- /dev/null +++ b/lowbatt-popup/po_lowbatt/sk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Nabíjanie bolo pozastavené kvôli neprimeranej teplote" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batéria vybitá" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batéria je vybitá. Telefón sa vypne" + diff --git a/lowbatt-popup/po_lowbatt/sl.po b/lowbatt-popup/po_lowbatt/sl.po new file mode 100755 index 0000000..0295fc8 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/sl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Polnjenje začasno zaustavljeno zaradi ekstremnih temperatur." + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Baterija prazna" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Skoraj prazna baterija. Telefon se bo izklopil" + diff --git a/lowbatt-popup/po_lowbatt/sr.po b/lowbatt-popup/po_lowbatt/sr.po new file mode 100755 index 0000000..1b017c5 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/sr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Punjenje pauzirano zbog visoke temperature" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Baterija prazna" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Baterija prazna. Telefon će se isključiti" + diff --git a/lowbatt-popup/po_lowbatt/sv.po b/lowbatt-popup/po_lowbatt/sv.po new file mode 100755 index 0000000..fb6011f --- /dev/null +++ b/lowbatt-popup/po_lowbatt/sv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Laddningen avbruten pga för hög eller för låg temperatur" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Låg batterinivå" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Låg batterinivå. Telefonen stängs av" + diff --git a/lowbatt-popup/po_lowbatt/tr_TR.po b/lowbatt-popup/po_lowbatt/tr_TR.po new file mode 100644 index 0000000..16eb796 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/tr_TR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Aşırı sıcaklık nedeniyle şarj işlemi durduruldu" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Düşük pil" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Düşük pil. Telefon kapatılacak" + diff --git a/lowbatt-popup/po_lowbatt/uk.po b/lowbatt-popup/po_lowbatt/uk.po new file mode 100755 index 0000000..6a35b1d --- /dev/null +++ b/lowbatt-popup/po_lowbatt/uk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "Зарядження припинено - критична температура" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Батарея розряджена" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Акумулятор розряджений. Телефон буде вимкнено" + diff --git a/lowbatt-popup/po_lowbatt/uz.po b/lowbatt-popup/po_lowbatt/uz.po new file mode 100755 index 0000000..c514bd5 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/uz.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "O‘ta yuqori harorat tufayli zaryadlash to‘xtatildi" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "Batareya quvvati kam" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "Batareya quvvati kam. Telefon yopiladi" + diff --git a/lowbatt-popup/po_lowbatt/zh_CN.po b/lowbatt-popup/po_lowbatt/zh_CN.po new file mode 100644 index 0000000..921bb82 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/zh_CN.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "温度过高,暂停充电" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "电量低" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "电量低。电话将关闭" + diff --git a/lowbatt-popup/po_lowbatt/zh_HK.po b/lowbatt-popup/po_lowbatt/zh_HK.po new file mode 100644 index 0000000..cf2774e --- /dev/null +++ b/lowbatt-popup/po_lowbatt/zh_HK.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "由於溫度過高或過低而導致充電暫停" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "電量不足" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "電量不足。手機將會關閉" + diff --git a/lowbatt-popup/po_lowbatt/zh_SG.po b/lowbatt-popup/po_lowbatt/zh_SG.po new file mode 100755 index 0000000..295bd08 --- /dev/null +++ b/lowbatt-popup/po_lowbatt/zh_SG.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "温度过高,暂停充电" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "电量低" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "电量低。电话将关闭" + diff --git a/lowbatt-popup/po_lowbatt/zh_TW.po b/lowbatt-popup/po_lowbatt/zh_TW.po new file mode 100644 index 0000000..fe4aa8a --- /dev/null +++ b/lowbatt-popup/po_lowbatt/zh_TW.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE" +msgstr "極端溫度導致充電暫停" + +msgid "IDS_COM_POP_BATTERYLOW" +msgstr "電量不足" + +msgid "IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN" +msgstr "電量不足。手機將會關閉" + diff --git a/lowbatt-popup/src/lowbatt.c b/lowbatt-popup/src/lowbatt.c new file mode 100755 index 0000000..0c9cf9f --- /dev/null +++ b/lowbatt-popup/src/lowbatt.c @@ -0,0 +1,387 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#include +#include +#include +#include +#include +#include +#include "lowbatt.h" +#include +#include +#include +#include +#include +#include +#include + +#define CHECK_ACT 0 +#define WARNING_ACT 1 +#define POWER_OFF_ACT 2 +#define CHARGE_ERROR_ACT 3 + + +static int option = -1; + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + lowbatt_timeout_func(data); + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object * obj, void *event) +{ + elm_exit(); +} + +/* Quit */ +static void main_quit_cb(void *data, Evas_Object *obj, const char *emission, + const char *source) +{ + elm_exit(); +} + +/* Update text font */ +static void update_ts(Evas_Object *eo, struct text_part *tp, int size) +{ + int i; + + if (eo == NULL || tp == NULL || size < 0) + return; + + for (i = 0; i < size; i++) { + if (tp[i].part && tp[i].msgid) + edje_object_part_text_set(eo, tp[i].part, + _(tp[i].msgid)); + } +} + +/* Language changed noti handler */ +static int lang_changed(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main == NULL) + return 0; + + update_ts(elm_layout_edje_get(ad->layout_main), main_txt, + sizeof(main_txt) / sizeof(main_txt[0])); + return 0; +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Read from EDJ file */ +static Evas_Object *load_edj(Evas_Object * parent, const char *file, + const char *group) +{ + Evas_Object *eo; + int r; + + eo = elm_layout_add(parent); + if (eo) { + r = elm_layout_file_set(eo, file, group); + if (!r) { + evas_object_del(eo); + return NULL; + } + + evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + char *opt = NULL; + + opt = bundle_get_val(b, "_SYSPOPUP_CONTENT_"); + if (opt == NULL) + option = CHECK_ACT; + else if (!strcmp(opt,"warning")) + option = WARNING_ACT; + else if (!strcmp(opt,"poweroff")) + option = POWER_OFF_ACT; + else if (!strcmp(opt,"chargeerr")) + option = CHARGE_ERROR_ACT; + else + option = CHECK_ACT; + + if (syspopup_has_popup(b)) { + if (option == CHECK_ACT) { + return 0; + } + syspopup_reset(b); + } else { + if(option == CHECK_ACT) { + exit(0); + } + syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + + /* Start Main UI */ + lowbatt_start((void *)ad); + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +} + +/* Cleanup objects to avoid mem-leak */ +void lowbatt_cleanup(struct appdata *ad) +{ + if (ad == NULL) + return; + + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +/* Background clicked noti */ +static void bg_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : Inside bg clicked \n"); + exit(0); +} + +static void bg_noti_cb(void *data) +{ + ui_bgimg_reload((Evas_Object *) data); +} + +/* Create indicator bar */ +static int lowbatt_create_indicator(struct appdata *ad) +{ + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_HIDE); + return 0; +} + + +void lowbatt_timeout_func(void *data) +{ + system_print("\n System-popup : In Lowbatt timeout\n"); + lowbatt_cleanup(data); + + /* If poweroff requested */ + if (option == POWER_OFF_ACT) { + if (sysman_call_predef_action(PREDEF_POWEROFF, 0) == -1) { + system_print + ("System-popup : failed to request poweroff to system_server \n"); + fflush(stdout); + system("poweroff"); + } + } + /* Now get lost */ + exit(0); +} + +/* Basic popup widget */ +static int lowbatt_create_and_show_basic_popup(struct appdata *ad) +{ + Evas_Object *btn1; + + /* Add beat ui popup */ + /* No need to pass main window ptr */ + ad->popup = elm_popup_add(ad->win_main); + if (ad->popup == NULL) { + system_print("\n System-popup : Add popup failed \n"); + return -1; + } + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + + elm_object_style_set(ad->popup, "transparent"); + elm_popup_timeout_set(ad->layout_main, 3); + + /* Check launch option */ + if (option == CHARGE_ERROR_ACT) + elm_object_text_set(ad->popup, _("IDS_COM_BODY_CHARGING_PAUSED_DUE_TO_EXTREME_TEMPERATURE")); + else if (option == WARNING_ACT) + elm_object_text_set(ad->popup, _("IDS_COM_POP_BATTERYLOW")); + else + elm_object_text_set(ad->popup, _("IDS_COM_POP_LOW_BATTERY_PHONE_WILL_SHUT_DOWN")); + elm_object_part_text_set(ad->popup, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup); + elm_object_text_set(btn1, _("IDS_COM_SK_OK")); + elm_object_part_content_set(ad->popup, "button1", btn1); + elm_object_style_set(btn1, "popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", lowbatt_timeout_func, ad); + + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + evas_object_show(ad->popup); + + return 0; +} +static int lowbatt_svi_play(void) +{ + int r = 0; + int handle = 0; + r = svi_init(&handle); //Initialize SVI + + if ( r != SVI_SUCCESS ) { + system_print("Cannot initialize SVI.\n"); + return 0; + } else { + r = svi_play(handle, SVI_VIB_OPERATION_LOWBATT, SVI_SND_OPERATION_LOWBATT); + if (r != SVI_SUCCESS) { + system_print("Cannot play sound or vibration.\n"); + } + r = svi_fini(handle); //Finalize SVI + if (r != SVI_SUCCESS) { + system_print("Cannot close SVI.\n"); + return 0; + } + } + return 1; +} +int lowbatt_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = lowbatt_create_and_show_basic_popup(ad); + if (ret_val != 0) + return -1; + lowbatt_svi_play(); + /* Change LCD brightness */ + ret_val = pm_change_state(LCD_NORMAL); + if (ret_val != 0) + return -1; + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + Evas_Object *win; + struct appdata *ad = data; + + /* create window */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + elm_theme_overlay_add(NULL,EDJ_NAME); + + return 0; +} + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + int val = -1, ret = -1; + + ret = vconf_get_int(VCONFKEY_TESTMODE_LOW_BATT_POPUP, &val); + if(ret == 0 && val == 1) { + system_print("Testmode without launching popup"); + return 0; + } + + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/lowbatt-popup/src/lowbatt.h b/lowbatt-popup/src/lowbatt.h new file mode 100644 index 0000000..69e3b18 --- /dev/null +++ b/lowbatt-popup/src/lowbatt.h @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#ifndef __DEF_lowbatt_H_ +#define __DEF_lowbatt_H_ + +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif /* PREFIX */ + +#define TEMP_DIR "/tmp" +#define PACKAGE "lowbatt-popup" +#define APPNAME "lowbatt-popup" +#define ICON_DIR PREFIX"/apps/org.tizen.lowbat-syspopup/res/images" +#define BG_IMAGE TEMP_DIR"/01_popup_bg.jpg" +#define MAIN_W (480) +#define MAIN_H (800) +#define EDJ_PATH PREFIX"/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt" +#define EDJ_NAME EDJ_PATH"/lowbatt.edj" +#define GRP_MAIN "main" +#define GRP_POPUP "popup" +#define NEW_INDI +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) + +#ifndef PREDEF_POWEROFF +#define PREDEF_POWEROFF "poweroff" +#endif /* PREFEF_POWEROFF */ + +#define BEAT + +/* Acct profiling support */ +#define ACCT_PROF +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +/* Text layout */ +struct text_part { + char *part; + char *msgid; +}; + +/* Main text */ +struct text_part main_txt[] = { + {"txt_title", N_("Lowbatt"),}, + {"txt_mesg", N_(""),}, +}; + +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *popup; + Evas_Object *layout_main; + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + + double w_ratio; + double h_ratio; + +}; + +#endif /* __DEF_lowbatt_H__ */ diff --git a/lowmem-popup/CMakeLists.txt b/lowmem-popup/CMakeLists.txt new file mode 100755 index 0000000..332579b --- /dev/null +++ b/lowmem-popup/CMakeLists.txt @@ -0,0 +1,68 @@ + +########################### low memory ########################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(lowmem-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/lowmem-popup/src/lowmem.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/lowmem-popup) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound sysman syspopup ecore-evas) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g -I/usr/include/elementary-0 ") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) + +ADD_CUSTOM_TARGET(lowmem.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/../images + ${CMAKE_SOURCE_DIR}/edcs/lowmem.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/lowmem.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edcs/lowmem.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} lowmem.edj) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.lowmem-syspopup/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/lowmem.edj DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/edje/lowmem) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowmem-syspopup.png DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/icon) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/sound/02_Warning.wav DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/keysound) + + +# install manifest xml file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.lowmem-syspopup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_lowmem) + +################################# End ############################################## + diff --git a/lowmem-popup/po_lowmem/CMakeLists.txt b/lowmem-popup/po_lowmem/CMakeLists.txt new file mode 100644 index 0000000..ccbde0e --- /dev/null +++ b/lowmem-popup/po_lowmem/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.lowmem-syspopup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po_lowmem ALL DEPENDS ${moFiles}) diff --git a/lowmem-popup/po_lowmem/ar.po b/lowmem-popup/po_lowmem/ar.po new file mode 100755 index 0000000..f8b5c99 --- /dev/null +++ b/lowmem-popup/po_lowmem/ar.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "الذاكرة لا تكفي" + +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "حجم الذاكرة منخفض" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s مغلق" + diff --git a/lowmem-popup/po_lowmem/az.po b/lowmem-popup/po_lowmem/az.po new file mode 100755 index 0000000..b2c014a --- /dev/null +++ b/lowmem-popup/po_lowmem/az.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yaddaş kifayət etmir" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Batareya azdır" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s bağlanmışdır" + diff --git a/lowmem-popup/po_lowmem/bg.po b/lowmem-popup/po_lowmem/bg.po new file mode 100755 index 0000000..6937b60 --- /dev/null +++ b/lowmem-popup/po_lowmem/bg.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Няма достатъчно памет" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Паметта е на привършване" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s затворен" + diff --git a/lowmem-popup/po_lowmem/ca.po b/lowmem-popup/po_lowmem/ca.po new file mode 100755 index 0000000..58997e5 --- /dev/null +++ b/lowmem-popup/po_lowmem/ca.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hi ha prou memòria" + +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Poca memòria" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s tancat" + diff --git a/lowmem-popup/po_lowmem/cs.po b/lowmem-popup/po_lowmem/cs.po new file mode 100755 index 0000000..1543d61 --- /dev/null +++ b/lowmem-popup/po_lowmem/cs.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s byl uzavřen" + diff --git a/lowmem-popup/po_lowmem/da.po b/lowmem-popup/po_lowmem/da.po new file mode 100755 index 0000000..d59f5c7 --- /dev/null +++ b/lowmem-popup/po_lowmem/da.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok hukommelse" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lav hukommelse" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s blev lukket" + diff --git a/lowmem-popup/po_lowmem/de_DE.po b/lowmem-popup/po_lowmem/de_DE.po new file mode 100644 index 0000000..49e052b --- /dev/null +++ b/lowmem-popup/po_lowmem/de_DE.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Speicher voll" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Wenig Speicher übrig" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s geschlossen" + diff --git a/lowmem-popup/po_lowmem/el_GR.po b/lowmem-popup/po_lowmem/el_GR.po new file mode 100644 index 0000000..563cdcd --- /dev/null +++ b/lowmem-popup/po_lowmem/el_GR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s έκλεισε" + diff --git a/lowmem-popup/po_lowmem/en.po b/lowmem-popup/po_lowmem/en.po new file mode 100644 index 0000000..aa34c4b --- /dev/null +++ b/lowmem-popup/po_lowmem/en.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/lowmem-popup/po_lowmem/en_PH.po b/lowmem-popup/po_lowmem/en_PH.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/lowmem-popup/po_lowmem/en_PH.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/lowmem-popup/po_lowmem/en_US.po b/lowmem-popup/po_lowmem/en_US.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/lowmem-popup/po_lowmem/en_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/lowmem-popup/po_lowmem/es_ES.po b/lowmem-popup/po_lowmem/es_ES.po new file mode 100644 index 0000000..fbf63aa --- /dev/null +++ b/lowmem-popup/po_lowmem/es_ES.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hay suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/lowmem-popup/po_lowmem/es_US.po b/lowmem-popup/po_lowmem/es_US.po new file mode 100755 index 0000000..907ff10 --- /dev/null +++ b/lowmem-popup/po_lowmem/es_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/lowmem-popup/po_lowmem/et.po b/lowmem-popup/po_lowmem/et.po new file mode 100755 index 0000000..6e3386c --- /dev/null +++ b/lowmem-popup/po_lowmem/et.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mälu pole piisavalt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Aku tühjeneb" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suleti" + diff --git a/lowmem-popup/po_lowmem/eu.po b/lowmem-popup/po_lowmem/eu.po new file mode 100755 index 0000000..8f30b33 --- /dev/null +++ b/lowmem-popup/po_lowmem/eu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ez dago memoria nahikoa" + +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria gutxi" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s itxita" + diff --git a/lowmem-popup/po_lowmem/fi.po b/lowmem-popup/po_lowmem/fi.po new file mode 100755 index 0000000..3f70a98 --- /dev/null +++ b/lowmem-popup/po_lowmem/fi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ei tarpeeksi muistia" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Muisti vähissä" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suljettu" + diff --git a/lowmem-popup/po_lowmem/fr_CA.po b/lowmem-popup/po_lowmem/fr_CA.po new file mode 100755 index 0000000..0c2d3ae --- /dev/null +++ b/lowmem-popup/po_lowmem/fr_CA.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/lowmem-popup/po_lowmem/fr_FR.po b/lowmem-popup/po_lowmem/fr_FR.po new file mode 100644 index 0000000..a2a8c39 --- /dev/null +++ b/lowmem-popup/po_lowmem/fr_FR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/lowmem-popup/po_lowmem/ga.po b/lowmem-popup/po_lowmem/ga.po new file mode 100755 index 0000000..637be5c --- /dev/null +++ b/lowmem-popup/po_lowmem/ga.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Easpa cuimhne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Cuimhne íseal" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s dúnta" + diff --git a/lowmem-popup/po_lowmem/gl.po b/lowmem-popup/po_lowmem/gl.po new file mode 100755 index 0000000..7344763 --- /dev/null +++ b/lowmem-popup/po_lowmem/gl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Non hai suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baixa" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s pechado" + diff --git a/lowmem-popup/po_lowmem/hi.po b/lowmem-popup/po_lowmem/hi.po new file mode 100755 index 0000000..e10e580 --- /dev/null +++ b/lowmem-popup/po_lowmem/hi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "पर्याप्‍त मेमोरी नहीं" + +msgid "IDS_COM_SK_OK" +msgstr "ठीक" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "बैटरी कम है" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s बंद" + diff --git a/lowmem-popup/po_lowmem/hr.po b/lowmem-popup/po_lowmem/hr.po new file mode 100755 index 0000000..d44a68d --- /dev/null +++ b/lowmem-popup/po_lowmem/hr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorija nedovoljna" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Malo memorije" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoren" + diff --git a/lowmem-popup/po_lowmem/hu.po b/lowmem-popup/po_lowmem/hu.po new file mode 100755 index 0000000..6e0bffa --- /dev/null +++ b/lowmem-popup/po_lowmem/hu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lezárva" + diff --git a/lowmem-popup/po_lowmem/hy.po b/lowmem-popup/po_lowmem/hy.po new file mode 100755 index 0000000..df1a7d9 --- /dev/null +++ b/lowmem-popup/po_lowmem/hy.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Չկա բավական հիշողություն" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Մարտկոցի լիցքը թույլ է" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s փակվեց" + diff --git a/lowmem-popup/po_lowmem/is.po b/lowmem-popup/po_lowmem/is.po new file mode 100755 index 0000000..7157e2c --- /dev/null +++ b/lowmem-popup/po_lowmem/is.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ekki er nægt minni" + +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Það er of lítið minni" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s var lokað" + diff --git a/lowmem-popup/po_lowmem/it_IT.po b/lowmem-popup/po_lowmem/it_IT.po new file mode 100644 index 0000000..8c0154f --- /dev/null +++ b/lowmem-popup/po_lowmem/it_IT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s chiuso" + diff --git a/lowmem-popup/po_lowmem/ja_JP.po b/lowmem-popup/po_lowmem/ja_JP.po new file mode 100644 index 0000000..03678ab --- /dev/null +++ b/lowmem-popup/po_lowmem/ja_JP.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "メモリ​が​不足​して​います。" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "メモリの容量不足です" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s​を​終了​しました" + diff --git a/lowmem-popup/po_lowmem/ka.po b/lowmem-popup/po_lowmem/ka.po new file mode 100755 index 0000000..7b3f3fd --- /dev/null +++ b/lowmem-popup/po_lowmem/ka.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "მეხსიერება არ არის საკმარისი" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "კვების ელემენტი იცლება" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s დახურულია" + diff --git a/lowmem-popup/po_lowmem/kk.po b/lowmem-popup/po_lowmem/kk.po new file mode 100755 index 0000000..0aa4d69 --- /dev/null +++ b/lowmem-popup/po_lowmem/kk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Жадында орын аз" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея заряды аз" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s жабық" + diff --git a/lowmem-popup/po_lowmem/ko_KR.po b/lowmem-popup/po_lowmem/ko_KR.po new file mode 100644 index 0000000..671ecbc --- /dev/null +++ b/lowmem-popup/po_lowmem/ko_KR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s이(가) 종료되었습니다" + diff --git a/lowmem-popup/po_lowmem/lt.po b/lowmem-popup/po_lowmem/lt.po new file mode 100755 index 0000000..b65828e --- /dev/null +++ b/lowmem-popup/po_lowmem/lt.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nepakanka atminties" + +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Senkanti baterija" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s uždaryta" + diff --git a/lowmem-popup/po_lowmem/lv.po b/lowmem-popup/po_lowmem/lv.po new file mode 100755 index 0000000..9b5efb1 --- /dev/null +++ b/lowmem-popup/po_lowmem/lv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Atmiņa pilna" + +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Tukšs akumulators" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Sadaļa %s ir aizvērta" + diff --git a/lowmem-popup/po_lowmem/mk.po b/lowmem-popup/po_lowmem/mk.po new file mode 100755 index 0000000..24872b6 --- /dev/null +++ b/lowmem-popup/po_lowmem/mk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Нема доволно меморија" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Има уште малку меморија" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s се затвори" + diff --git a/lowmem-popup/po_lowmem/nb.po b/lowmem-popup/po_lowmem/nb.po new file mode 100755 index 0000000..7496536 --- /dev/null +++ b/lowmem-popup/po_lowmem/nb.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok minne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lite minne" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lukket" + diff --git a/lowmem-popup/po_lowmem/nl_NL.po b/lowmem-popup/po_lowmem/nl_NL.po new file mode 100644 index 0000000..df23352 --- /dev/null +++ b/lowmem-popup/po_lowmem/nl_NL.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s afgesloten" + diff --git a/lowmem-popup/po_lowmem/pl.po b/lowmem-popup/po_lowmem/pl.po new file mode 100755 index 0000000..4ddbfbb --- /dev/null +++ b/lowmem-popup/po_lowmem/pl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Brak pamięci" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mało pamięci" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Zamknięto %s" + diff --git a/lowmem-popup/po_lowmem/pt_BR.po b/lowmem-popup/po_lowmem/pt_BR.po new file mode 100755 index 0000000..27546d8 --- /dev/null +++ b/lowmem-popup/po_lowmem/pt_BR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memória insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Baixa memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/lowmem-popup/po_lowmem/pt_PT.po b/lowmem-popup/po_lowmem/pt_PT.po new file mode 100644 index 0000000..f2390c3 --- /dev/null +++ b/lowmem-popup/po_lowmem/pt_PT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Cartão SD cheio" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Pouca memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/lowmem-popup/po_lowmem/ro.po b/lowmem-popup/po_lowmem/ro.po new file mode 100755 index 0000000..6167017 --- /dev/null +++ b/lowmem-popup/po_lowmem/ro.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorie plină" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorie insuficientă" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s a fost închis" + diff --git a/lowmem-popup/po_lowmem/ru_RU.po b/lowmem-popup/po_lowmem/ru_RU.po new file mode 100644 index 0000000..fd06e2b --- /dev/null +++ b/lowmem-popup/po_lowmem/ru_RU.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостаточно памяти" + +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Аккумулятор разряжен" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрыт" + diff --git a/lowmem-popup/po_lowmem/sk.po b/lowmem-popup/po_lowmem/sk.po new file mode 100755 index 0000000..404d0ae --- /dev/null +++ b/lowmem-popup/po_lowmem/sk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvorené" + diff --git a/lowmem-popup/po_lowmem/sl.po b/lowmem-popup/po_lowmem/sl.po new file mode 100755 index 0000000..78cc366 --- /dev/null +++ b/lowmem-popup/po_lowmem/sl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ni dovolj pomnilnika" + +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Zmanjkuje pomnilnika" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zaprto" + diff --git a/lowmem-popup/po_lowmem/sr.po b/lowmem-popup/po_lowmem/sr.po new file mode 100755 index 0000000..7d1d1f0 --- /dev/null +++ b/lowmem-popup/po_lowmem/sr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedovoljna memorija" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorija pri kraju" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoreno" + diff --git a/lowmem-popup/po_lowmem/sv.po b/lowmem-popup/po_lowmem/sv.po new file mode 100755 index 0000000..dcb321a --- /dev/null +++ b/lowmem-popup/po_lowmem/sv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Minnet fullt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ont om minnesplats" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s har stängts" + diff --git a/lowmem-popup/po_lowmem/tr_TR.po b/lowmem-popup/po_lowmem/tr_TR.po new file mode 100644 index 0000000..bac7956 --- /dev/null +++ b/lowmem-popup/po_lowmem/tr_TR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yeterli hafıza yok" + +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Düşük hafıza" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s kapatıldı" + diff --git a/lowmem-popup/po_lowmem/uk.po b/lowmem-popup/po_lowmem/uk.po new file mode 100755 index 0000000..63f22f9 --- /dev/null +++ b/lowmem-popup/po_lowmem/uk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостатньо пам'яті" + +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея розряджена" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрито" + diff --git a/lowmem-popup/po_lowmem/uz.po b/lowmem-popup/po_lowmem/uz.po new file mode 100755 index 0000000..f774e87 --- /dev/null +++ b/lowmem-popup/po_lowmem/uz.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Xotira yetarli emas" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Bo‘sh xotira kam" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s yopildi" + diff --git a/lowmem-popup/po_lowmem/zh_CN.po b/lowmem-popup/po_lowmem/zh_CN.po new file mode 100644 index 0000000..666bc7e --- /dev/null +++ b/lowmem-popup/po_lowmem/zh_CN.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "没有足够内存" + +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/lowmem-popup/po_lowmem/zh_HK.po b/lowmem-popup/po_lowmem/zh_HK.po new file mode 100644 index 0000000..b3cf091 --- /dev/null +++ b/lowmem-popup/po_lowmem/zh_HK.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/lowmem-popup/po_lowmem/zh_SG.po b/lowmem-popup/po_lowmem/zh_SG.po new file mode 100755 index 0000000..863ea88 --- /dev/null +++ b/lowmem-popup/po_lowmem/zh_SG.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "内存不足" + +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/lowmem-popup/po_lowmem/zh_TW.po b/lowmem-popup/po_lowmem/zh_TW.po new file mode 100644 index 0000000..cf73ac9 --- /dev/null +++ b/lowmem-popup/po_lowmem/zh_TW.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/lowmem-popup/src/lowmem.c b/lowmem-popup/src/lowmem.c new file mode 100755 index 0000000..78270dc --- /dev/null +++ b/lowmem-popup/src/lowmem.c @@ -0,0 +1,387 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#include +#include +#include +#include +#include +#include +#include +#include "lowmem.h" +#include +#include + +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) /* the case of 480*800 */ +#define SOUND_PATH PREFIX"/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav" +#define NEW_INDI + +#define ACCT_PROF +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +static const char *process_name = NULL; + +#include + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +struct text_part { + char *part; + char *msgid; +}; + +static struct text_part main_txt[] = { + {"txt_title", N_("Low memory popup"),}, + {"txt_mesg", N_(""),}, +}; + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object *obj, void *event) +{ + elm_exit(); +} + +/* Quit */ +static void main_quit_cb(void *data, Evas_Object *obj, const char *emission, + const char *source) +{ + elm_exit(); +} + +/* Update text font */ +static void update_ts(Evas_Object *eo, struct text_part *tp, int size) +{ + int i; + + if (eo == NULL || tp == NULL || size < 0) + return; + + for (i = 0; i < size; i++) { + if (tp[i].part && tp[i].msgid) + edje_object_part_text_set(eo, tp[i].part, + _(tp[i].msgid)); + } +} + +/* Language changed noti handler */ +static int lang_changed(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main == NULL) + return 0; + + update_ts(elm_layout_edje_get(ad->layout_main), main_txt, + sizeof(main_txt) / sizeof(main_txt[0])); + return 0; +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Read from EDJ file */ +static Evas_Object *load_edj(Evas_Object * parent, const char *file, + const char *group) +{ + Evas_Object *eo; + int r; + + eo = elm_layout_add(parent); + if (eo) { + r = elm_layout_file_set(eo, file, group); + if (!r) { + evas_object_del(eo); + return NULL; + } + + evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + int ret = 0; + + if (syspopup_has_popup(b)) { + syspopup_reset(b); + } else { + ret = syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + process_name = bundle_get_val(b, "_APP_NAME_"); + if (process_name == NULL) + process_name = "unknown_app"; + + /* Start Main UI */ + lowmem_start((void *)ad); + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +} + +/* Cleanup objects to avoid mem-leak */ +void lowmem_cleanup(struct appdata *ad) +{ + if (ad == NULL) + return; + + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +/* Background clicked noti */ +void bg_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : In BG Noti \n"); + fflush(stdout); + exit(0); +} + +void lowmem_clicked_cb(void *data, Evas * e, Evas_Object * obj, + void *event_info) +{ + system_print("\n system-popup : Screen clicked \n"); + fflush(stdout); + elm_exit(); + exit(0); +} + +/* Create indicator bar */ +int lowmem_create_indicator(struct appdata *ad) +{ + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_HIDE); + return 0; +} + +/* Play vibration */ +int lowmem_play_vibration() +{ + int ret_val = 0; + int dev_handle = 0; + int mode = 0; + + /* Open the haptic device */ + dev_handle = device_haptic_open(DEV_IDX_0, mode); + if (dev_handle < 0) + return -1; + + /* Play a monotone pattern for 1s */ + ret_val = device_haptic_play_monotone(dev_handle, 1000); + device_haptic_close(dev_handle); + if (ret_val < 0) + return -1; + + return 0; +} + +void lowmem_timeout_func(void *data) +{ + system_print("\n System-popup : In Lowmem timeout\n"); + + /* Cleanup */ + lowmem_cleanup(data); + + /* Now get lost */ + exit(0); +} + +/* Basic popup widget */ +int lowmem_create_and_show_basic_popup(struct appdata *ad) +{ + Evas_Object *btn1; + + /* Initialization */ + char *note = (char *)malloc(MAX_PROCESS_NAME * (sizeof(char))); + char note_buf[MAX_PROCESS_NAME] = {0, }; + int ret_val = 0; + + if (!note) { + system_print("\n System-popup : can not malloc \n"); + return -1; + } + system_print("\n System-popup : process name is %s \n", process_name); + snprintf(note_buf, MAX_PROCESS_NAME, _("IDS_IDLE_POP_PS_CLOSED"), process_name); + snprintf(note, MAX_PROCESS_NAME, "%s %s", _("IDS_COM_POP_NOT_ENOUGH_MEMORY"),note_buf); + + /* Add notify */ + /* No need to give main window, it will create internally */ + ad->popup = elm_popup_add(ad->win_main); + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + elm_object_style_set(ad->popup, "transparent"); + elm_popup_timeout_set(ad->layout_main, 3); + elm_object_text_set(ad->popup, note); + elm_object_part_text_set(ad->popup, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup); + elm_object_text_set(btn1, _("IDS_COM_SK_OK")); + elm_object_part_content_set(ad->popup, "button1", btn1); + elm_object_style_set(btn1, "popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", bg_clicked_cb, ad); + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + evas_object_show(ad->popup); + + free(note); + + return 0; +} + +int lowmem_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = lowmem_create_and_show_basic_popup(ad); + if (ret_val != 0) + return -1; + + /* Change LCD brightness */ + ret_val = pm_change_state(LCD_NORMAL); + if (ret_val != 0) + return -1; + + /* Play vibration */ + ret_val = lowmem_play_vibration(); + if (ret_val == -1) + system_print("\n Lowmem : Play vibration failed \n"); + + /* Play the sound alert */ + ret_val = mm_sound_play_keysound(SOUND_PATH, 1); + if (ret_val != 0) + system_print("\n Lowmem : Play vibration failed \n"); + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + Evas_Object *win; + struct appdata *ad = data; + + /* create window */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + return 0; + +} + + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + sysconf_set_mempolicy(OOM_IGNORE); + + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/lowmem-popup/src/lowmem.h b/lowmem-popup/src/lowmem.h new file mode 100644 index 0000000..09596ee --- /dev/null +++ b/lowmem-popup/src/lowmem.h @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#ifndef __DEF_lowmem_H_ +#define __DEF_lowmem_H_ + +#include +#include +#include +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif /* PREFIX */ + +#define TEMP_DIR "/tmp" +#define PACKAGE "lowmem-popup" +#define APPNAME "lowmem-popup" +#define ICON_DIR PREFIX"/apps/org.tizen.lowmem-syspopup/res/images" +#define BG_IMAGE TEMP_DIR"/01_popup_bg.jpg" +#define MAIN_W (480) +#define MAIN_H (800) +#define EDJ_PATH PREFIX"/apps/org.tizen.lowmem-syspopup/res/edje/lowmem" +#define EDJ_NAME EDJ_PATH"/lowmem.edj" +#define EDJ_POPUP_NAME EDJ_PATH"/lowmem_popup.edj" +#define GRP_MAIN "main" +#define GRP_POPUP "popup" +#define MAX_PROCESS_NAME 100 +#define PROCESS_NAME_FILE "/tmp/processname.txt" +#define BEAT + +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *popup; + + Evas_Object *layout_main; /* layout widget based on EDJ */ + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + + double w_ratio; + double h_ratio; + +}; + +#endif /* __DEF_lowmem_H__ */ diff --git a/mmc-popup/CMakeLists.txt b/mmc-popup/CMakeLists.txt new file mode 100755 index 0000000..c2461d1 --- /dev/null +++ b/mmc-popup/CMakeLists.txt @@ -0,0 +1,59 @@ + +#################### Memory-card ############################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(mmc-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/mmc-popup/src/mmc.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/mmc-popup) +INCLUDE_DIRECTORIES(/usr/include/svi) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound notification sysman) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g ") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-lsvi") + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.mmc-syspopup/bin) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) + +# install manifest xml file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.mmc-syspopup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_mmc) + +############################################################### + + diff --git a/mmc-popup/po_mmc/CMakeLists.txt b/mmc-popup/po_mmc/CMakeLists.txt new file mode 100644 index 0000000..8b5808d --- /dev/null +++ b/mmc-popup/po_mmc/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.mmc-syspopup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po_mmc ALL DEPENDS ${moFiles}) diff --git a/mmc-popup/po_mmc/ar.po b/mmc-popup/po_mmc/ar.po new file mode 100755 index 0000000..8a75869 --- /dev/null +++ b/mmc-popup/po_mmc/ar.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "فشل تحميل بطاقة SD. إعادة إدخال بطاقة SD أو تهيئتها" + diff --git a/mmc-popup/po_mmc/az.po b/mmc-popup/po_mmc/az.po new file mode 100755 index 0000000..c8dc0a6 --- /dev/null +++ b/mmc-popup/po_mmc/az.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD kartı daxil etmək uğursuz oldu. SD kartı yenidən taxın və ya format edin" + diff --git a/mmc-popup/po_mmc/bg.po b/mmc-popup/po_mmc/bg.po new file mode 100755 index 0000000..ea6e587 --- /dev/null +++ b/mmc-popup/po_mmc/bg.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Неуспешно монтиране на SD картата. Поставете отново или форматирайте SD картата" + diff --git a/mmc-popup/po_mmc/ca.po b/mmc-popup/po_mmc/ca.po new file mode 100755 index 0000000..b7bcde8 --- /dev/null +++ b/mmc-popup/po_mmc/ca.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Error en muntar la targeta SD. Torni a inserir o doni format a la targeta SD" + diff --git a/mmc-popup/po_mmc/cs.po b/mmc-popup/po_mmc/cs.po new file mode 100755 index 0000000..d7f5bc2 --- /dev/null +++ b/mmc-popup/po_mmc/cs.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD kartu se nepodařilo připojit. Vložte SD kartu znovu nebo ji naformátujte" + diff --git a/mmc-popup/po_mmc/da.po b/mmc-popup/po_mmc/da.po new file mode 100755 index 0000000..a574ce8 --- /dev/null +++ b/mmc-popup/po_mmc/da.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Kunne ikke aktivere SD-kort. Genindsæt eller formatér SD-kort" + diff --git a/mmc-popup/po_mmc/de_DE.po b/mmc-popup/po_mmc/de_DE.po new file mode 100755 index 0000000..e53cdb4 --- /dev/null +++ b/mmc-popup/po_mmc/de_DE.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD-Karte konnte nicht verbunden werden. SD-Karte erneut einsetzen oder formatieren." + diff --git a/mmc-popup/po_mmc/el_GR.po b/mmc-popup/po_mmc/el_GR.po new file mode 100755 index 0000000..3f417bc --- /dev/null +++ b/mmc-popup/po_mmc/el_GR.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Η σύνδεση της κάρτας SD απέτυχε. Τοποθετήστε ξανά ή διαμορφώστε την κάρτα SD" + diff --git a/mmc-popup/po_mmc/en.po b/mmc-popup/po_mmc/en.po new file mode 100755 index 0000000..32808b0 --- /dev/null +++ b/mmc-popup/po_mmc/en.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Failed to mount SD card. Reinsert or format SD card" + diff --git a/mmc-popup/po_mmc/en_PH.po b/mmc-popup/po_mmc/en_PH.po new file mode 100755 index 0000000..32808b0 --- /dev/null +++ b/mmc-popup/po_mmc/en_PH.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Failed to mount SD card. Reinsert or format SD card" + diff --git a/mmc-popup/po_mmc/en_US.po b/mmc-popup/po_mmc/en_US.po new file mode 100755 index 0000000..32808b0 --- /dev/null +++ b/mmc-popup/po_mmc/en_US.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Failed to mount SD card. Reinsert or format SD card" + diff --git a/mmc-popup/po_mmc/es_ES.po b/mmc-popup/po_mmc/es_ES.po new file mode 100755 index 0000000..a812e8d --- /dev/null +++ b/mmc-popup/po_mmc/es_ES.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Error al montar tarjeta SD. Vuelva a insertar o formatee la tarjeta SD" + diff --git a/mmc-popup/po_mmc/es_US.po b/mmc-popup/po_mmc/es_US.po new file mode 100755 index 0000000..fbd2309 --- /dev/null +++ b/mmc-popup/po_mmc/es_US.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Error al montar tarjeta de memoria. Vuelva a insertar o formatee la tarjeta de memoria" + diff --git a/mmc-popup/po_mmc/et.po b/mmc-popup/po_mmc/et.po new file mode 100755 index 0000000..19b3df3 --- /dev/null +++ b/mmc-popup/po_mmc/et.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD-kaardi ühendamine nurjus. Sisestage SD-kaart uuesti või vormindage see" + diff --git a/mmc-popup/po_mmc/eu.po b/mmc-popup/po_mmc/eu.po new file mode 100755 index 0000000..eb528ba --- /dev/null +++ b/mmc-popup/po_mmc/eu.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Ezin izan da SD txartela muntatu. Birsartu edo formateatu SD txartela" + diff --git a/mmc-popup/po_mmc/fi.po b/mmc-popup/po_mmc/fi.po new file mode 100755 index 0000000..3cb511e --- /dev/null +++ b/mmc-popup/po_mmc/fi.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD-kortin liittäminen epäonnistui. Aseta SD-kortti uudelleen tai alusta se" + diff --git a/mmc-popup/po_mmc/fr_CA.po b/mmc-popup/po_mmc/fr_CA.po new file mode 100755 index 0000000..5659f60 --- /dev/null +++ b/mmc-popup/po_mmc/fr_CA.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Impossible d'activer la carte SD. Réinsérer ou formater la carte SD" + diff --git a/mmc-popup/po_mmc/fr_FR.po b/mmc-popup/po_mmc/fr_FR.po new file mode 100755 index 0000000..a0c8593 --- /dev/null +++ b/mmc-popup/po_mmc/fr_FR.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Impossible de monter la carte SD. Réinsérer ou formater la carte SD" + diff --git a/mmc-popup/po_mmc/ga.po b/mmc-popup/po_mmc/ga.po new file mode 100755 index 0000000..e36f544 --- /dev/null +++ b/mmc-popup/po_mmc/ga.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Theip ar ghléasadh chárta SD. Ionsáigh an cárta SD arís nó déan formáidiú air" + diff --git a/mmc-popup/po_mmc/gl.po b/mmc-popup/po_mmc/gl.po new file mode 100755 index 0000000..9868569 --- /dev/null +++ b/mmc-popup/po_mmc/gl.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Non se puido montar a tarxeta SD. Volve inserila ou formátaa" + diff --git a/mmc-popup/po_mmc/hi.po b/mmc-popup/po_mmc/hi.po new file mode 100755 index 0000000..b11adfb --- /dev/null +++ b/mmc-popup/po_mmc/hi.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "ओके" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "एसडी कार्ड माऊंट करने में विफल। एसडी कार्ड पुनः डालें या फ़ॉर्मेट करें" + diff --git a/mmc-popup/po_mmc/hr.po b/mmc-popup/po_mmc/hr.po new file mode 100755 index 0000000..4d663a0 --- /dev/null +++ b/mmc-popup/po_mmc/hr.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Greška stavljanja SD kartice. Ponovno umetnite ili formatirajte SD karticu" + diff --git a/mmc-popup/po_mmc/hu.po b/mmc-popup/po_mmc/hu.po new file mode 100755 index 0000000..c8c12f5 --- /dev/null +++ b/mmc-popup/po_mmc/hu.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Nem sikerült csatlakoztatni az SD-kártyát. Helyezze be újra vagy formázza meg az SD-kártyát" + diff --git a/mmc-popup/po_mmc/hy.po b/mmc-popup/po_mmc/hy.po new file mode 100755 index 0000000..cfe30bf --- /dev/null +++ b/mmc-popup/po_mmc/hy.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Չհաջողվեց սարել SD քարտը: Նորից մտցնել կամ ձևաչափել SD քարտը" + diff --git a/mmc-popup/po_mmc/is.po b/mmc-popup/po_mmc/is.po new file mode 100755 index 0000000..56d4bf4 --- /dev/null +++ b/mmc-popup/po_mmc/is.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Mistókst að tengja SD-kort. Settu SD-kortið í aftur eða forsníddu það" + diff --git a/mmc-popup/po_mmc/it_IT.po b/mmc-popup/po_mmc/it_IT.po new file mode 100755 index 0000000..9be0488 --- /dev/null +++ b/mmc-popup/po_mmc/it_IT.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Impossibile montare la scheda SD. Reinserire o formattare la scheda SD" + diff --git a/mmc-popup/po_mmc/ja_JP.po b/mmc-popup/po_mmc/ja_JP.po new file mode 100755 index 0000000..34d76b7 --- /dev/null +++ b/mmc-popup/po_mmc/ja_JP.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "外部SDカード​の​取り付け​に​失敗​しました。​外部SDカード​を​挿入​し直す​か​初期化​して​ください" + diff --git a/mmc-popup/po_mmc/ka.po b/mmc-popup/po_mmc/ka.po new file mode 100755 index 0000000..ecef906 --- /dev/null +++ b/mmc-popup/po_mmc/ka.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD ბარათი ვერ დაკავშირდა სისტემასთან. თავიდან ჩადეთ ან დააფორმატეთ SD ბარათი" + diff --git a/mmc-popup/po_mmc/kk.po b/mmc-popup/po_mmc/kk.po new file mode 100755 index 0000000..99bbe96 --- /dev/null +++ b/mmc-popup/po_mmc/kk.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD картасы шығарылмады. SD картасын қайта салыңыз немесе пішімдеңіз" + diff --git a/mmc-popup/po_mmc/ko_KR.po b/mmc-popup/po_mmc/ko_KR.po new file mode 100755 index 0000000..b3a72ea --- /dev/null +++ b/mmc-popup/po_mmc/ko_KR.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD 카드를 마운트하지 못하였습니다. SD 카드를 다시 삽입하거나 포맷하세요" + diff --git a/mmc-popup/po_mmc/lt.po b/mmc-popup/po_mmc/lt.po new file mode 100755 index 0000000..79f2434 --- /dev/null +++ b/mmc-popup/po_mmc/lt.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Nepavyko prijungti SD kortelės. Įdėkite iš naujo arba suformatuokite SD kortelę" + diff --git a/mmc-popup/po_mmc/lv.po b/mmc-popup/po_mmc/lv.po new file mode 100755 index 0000000..e075bd2 --- /dev/null +++ b/mmc-popup/po_mmc/lv.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Neizdevās ievietot SD karti. Ievietojiet atkārtoti vai formatējiet SD karti" + diff --git a/mmc-popup/po_mmc/mk.po b/mmc-popup/po_mmc/mk.po new file mode 100755 index 0000000..8e80181 --- /dev/null +++ b/mmc-popup/po_mmc/mk.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Неуспешно монтирање SD-картичка. Вметнете ја повторно или форматирајте ја" + diff --git a/mmc-popup/po_mmc/nb.po b/mmc-popup/po_mmc/nb.po new file mode 100755 index 0000000..66313e5 --- /dev/null +++ b/mmc-popup/po_mmc/nb.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Kunne ikke montere SD-kort. Sett inn eller formater SD-kortet på nytt" + diff --git a/mmc-popup/po_mmc/nl_NL.po b/mmc-popup/po_mmc/nl_NL.po new file mode 100755 index 0000000..436b581 --- /dev/null +++ b/mmc-popup/po_mmc/nl_NL.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Kan SD-kaart niet koppelen. Plaats de SD-kaart opnieuw of formatteer deze" + diff --git a/mmc-popup/po_mmc/pl.po b/mmc-popup/po_mmc/pl.po new file mode 100755 index 0000000..1d3cf33 --- /dev/null +++ b/mmc-popup/po_mmc/pl.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Instalacja karty pamięci nie powiodła się. Włóż ponownie lub sformatuj kartę pamięci" + diff --git a/mmc-popup/po_mmc/pt_BR.po b/mmc-popup/po_mmc/pt_BR.po new file mode 100755 index 0000000..dae9e00 --- /dev/null +++ b/mmc-popup/po_mmc/pt_BR.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Falha ao instalar cartão SD. Reintroduza ou formate o cartão SD" + diff --git a/mmc-popup/po_mmc/pt_PT.po b/mmc-popup/po_mmc/pt_PT.po new file mode 100755 index 0000000..d88faf9 --- /dev/null +++ b/mmc-popup/po_mmc/pt_PT.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Falha ao instalar cartão SD. Reintroduza ou formate o cartão SD" + diff --git a/mmc-popup/po_mmc/ro.po b/mmc-popup/po_mmc/ro.po new file mode 100755 index 0000000..3b8cee3 --- /dev/null +++ b/mmc-popup/po_mmc/ro.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Activarea cartelei SD nu a reuşit. Reintroduceţi sau formataţi cartela SD" + diff --git a/mmc-popup/po_mmc/ru_RU.po b/mmc-popup/po_mmc/ru_RU.po new file mode 100755 index 0000000..143a4c1 --- /dev/null +++ b/mmc-popup/po_mmc/ru_RU.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Не удалось подключить карту памяти SD. Переустановите или отформатируйте карту памяти SD" + diff --git a/mmc-popup/po_mmc/sk.po b/mmc-popup/po_mmc/sk.po new file mode 100755 index 0000000..5a98bd9 --- /dev/null +++ b/mmc-popup/po_mmc/sk.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Nepodarilo sa pripojiť kartu SD. Znova vložte alebo naformátujte kartu SD" + diff --git a/mmc-popup/po_mmc/sl.po b/mmc-popup/po_mmc/sl.po new file mode 100755 index 0000000..8068b4e --- /dev/null +++ b/mmc-popup/po_mmc/sl.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Vpenjanje kartice SD ni uspelo. Znova vstavite ali formatirajte kartico SD" + diff --git a/mmc-popup/po_mmc/sr.po b/mmc-popup/po_mmc/sr.po new file mode 100755 index 0000000..f096f93 --- /dev/null +++ b/mmc-popup/po_mmc/sr.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Neuspešno uključivanje SD kartice. Ponovo ubaci ili formatiraj SD karticu" + diff --git a/mmc-popup/po_mmc/sv.po b/mmc-popup/po_mmc/sv.po new file mode 100755 index 0000000..8790a95 --- /dev/null +++ b/mmc-popup/po_mmc/sv.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Misslyckades att montera SD-kort. Sätt i eller formatera SD-kort" + diff --git a/mmc-popup/po_mmc/tr_TR.po b/mmc-popup/po_mmc/tr_TR.po new file mode 100755 index 0000000..56f912a --- /dev/null +++ b/mmc-popup/po_mmc/tr_TR.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD kart takılamadı. SD kartı yeniden takın veya biçimlendirin" + diff --git a/mmc-popup/po_mmc/uk.po b/mmc-popup/po_mmc/uk.po new file mode 100755 index 0000000..b45cb4f --- /dev/null +++ b/mmc-popup/po_mmc/uk.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "Не вдалося підключити карту пам’яті. Вийміть і знову вставте карту пам’яті або відформатуйте її" + diff --git a/mmc-popup/po_mmc/uz.po b/mmc-popup/po_mmc/uz.po new file mode 100755 index 0000000..5ec058c --- /dev/null +++ b/mmc-popup/po_mmc/uz.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "SD-kartani montajlab bo‘lmadi. SD-kartani qayta kiriting yoki formatlang" + diff --git a/mmc-popup/po_mmc/zh_CN.po b/mmc-popup/po_mmc/zh_CN.po new file mode 100755 index 0000000..fff9f2f --- /dev/null +++ b/mmc-popup/po_mmc/zh_CN.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "安装SD卡失败。重新插入或格式化SD卡" + diff --git a/mmc-popup/po_mmc/zh_HK.po b/mmc-popup/po_mmc/zh_HK.po new file mode 100755 index 0000000..132c353 --- /dev/null +++ b/mmc-popup/po_mmc/zh_HK.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "掛載 SD 卡失敗。重新插入或格式化 SD 卡" + diff --git a/mmc-popup/po_mmc/zh_SG.po b/mmc-popup/po_mmc/zh_SG.po new file mode 100755 index 0000000..c003cfd --- /dev/null +++ b/mmc-popup/po_mmc/zh_SG.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "安装SD卡失败。重新插入或格式化SD卡" + diff --git a/mmc-popup/po_mmc/zh_TW.po b/mmc-popup/po_mmc/zh_TW.po new file mode 100755 index 0000000..33fa8d7 --- /dev/null +++ b/mmc-popup/po_mmc/zh_TW.po @@ -0,0 +1,9 @@ +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD" +msgstr "無法掛載 SD 卡。重新插入或格式化 SD 卡" + diff --git a/mmc-popup/src/mmc.c b/mmc-popup/src/mmc.c new file mode 100755 index 0000000..7fa1c0f --- /dev/null +++ b/mmc-popup/src/mmc.c @@ -0,0 +1,272 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#include +#include +#include +#include +#include +#include +#include "mmc.h" +#include +#include +#include +#include +#include +#include +#include + +#define CHECK_ACT 0 +#define MOUNT_ERROR_ACT 1 + + +static int option = -1; + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object * obj, void *event) +{ + elm_exit(); +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + char *opt = NULL; + + opt = bundle_get_val(b, "_SYSPOPUP_CONTENT_"); + if (!strcmp(opt,"mounterr")) + option = MOUNT_ERROR_ACT; + + if (syspopup_has_popup(b)) { + syspopup_reset(b); + } else { + syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + /* Start Main UI */ + mmc_popup_start((void *)ad); + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + return; +/* + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +*/ +} + +/* Cleanup objects to avoid mem-leak */ +void mmc_cleanup(struct appdata *ad) +{ + if (ad == NULL) + return; + + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +void mmc_response(void *data) +{ + if (data != NULL) + mmc_cleanup(data); + + exit(0); +} + +/* Basic popup widget */ +static int mmc_create_and_show_basic_popup(struct appdata *ad) +{ + Evas_Object *btn1; + + /* Add beat ui popup */ + /* No need to pass main window ptr */ + ad->popup = elm_popup_add(ad->win_main); + if (ad->popup == NULL) { + system_print("\n System-popup : Add popup failed \n"); + return -1; + } + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + + elm_object_style_set(ad->popup, "transparent"); + elm_popup_timeout_set(ad->layout_main, 3); + + /* Check launch option */ + if (option == MOUNT_ERROR_ACT) + elm_object_text_set(ad->popup, _("IDS_DN_POP_FAILED_TO_MOUNT_SD_CARD_REINSERT_OR_FORMAT_SD_CARD")); + elm_object_part_text_set(ad->popup, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup); + elm_object_text_set(btn1, _("IDS_COM_SK_OK")); + elm_object_part_content_set(ad->popup, "button1", btn1); + elm_object_style_set(btn1, "popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", mmc_response, ad); + + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + evas_object_show(ad->popup); + + return 0; +} +static int mmc_svi_play(void) +{ + int r = 0; + int handle = 0; + r = svi_init(&handle); //Initialize SVI + + if ( r != SVI_SUCCESS ) { + system_print("Cannot initialize SVI.\n"); + return 0; + } else { + r = svi_play(handle, SVI_VIB_OPERATION_LOWBATT, SVI_SND_OPERATION_LOWBATT); + if (r != SVI_SUCCESS) { + system_print("Cannot play sound or vibration.\n"); + } + r = svi_fini(handle); //Finalize SVI + if (r != SVI_SUCCESS) { + system_print("Cannot close SVI.\n"); + return 0; + } + } + return 1; +} +int mmc_popup_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = mmc_create_and_show_basic_popup(ad); + if (ret_val != 0) + return -1; + mmc_svi_play(); + /* Change LCD brightness */ + ret_val = pm_change_state(LCD_NORMAL); + if (ret_val != 0) + return -1; + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + Evas_Object *win; + struct appdata *ad = data; + + /* create window */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + return 0; +} + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/mmc-popup/src/mmc.h b/mmc-popup/src/mmc.h new file mode 100644 index 0000000..bf39dbf --- /dev/null +++ b/mmc-popup/src/mmc.h @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#ifndef __DEF_mmc_H_ +#define __DEF_mmc_H_ + +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif /* PREFIX */ + +#define TEMP_DIR "/tmp" +#define PACKAGE "mmc-popup" +#define APPNAME "mmc-popup" +#define MAIN_W (480) +#define MAIN_H (800) +#define GRP_MAIN "main" +#define GRP_POPUP "popup" +#define NEW_INDI +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) + +#define BEAT + +/* Acct profiling support */ +#define ACCT_PROF +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +/* Text layout */ +struct text_part { + char *part; + char *msgid; +}; + +/* Main text */ +struct text_part main_txt[] = { + {"txt_title", N_("Mmc"),}, + {"txt_mesg", N_(""),}, +}; + +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *popup; + Evas_Object *layout_main; + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + + double w_ratio; + double h_ratio; + +}; + +#endif /* __DEF_mmc_H__ */ diff --git a/packaging/org.tizen.lowbat-syspopup.manifest b/packaging/org.tizen.lowbat-syspopup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.lowbat-syspopup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.lowmem-syspopup.manifest b/packaging/org.tizen.lowmem-syspopup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.lowmem-syspopup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.mmc-syspopup.manifest b/packaging/org.tizen.mmc-syspopup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.mmc-syspopup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.poweroff-syspopup.manifest b/packaging/org.tizen.poweroff-syspopup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.poweroff-syspopup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.usbotg-syspopup.manifest b/packaging/org.tizen.usbotg-syspopup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.usbotg-syspopup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/org.tizen.usbotg-unmount-popup.manifest b/packaging/org.tizen.usbotg-unmount-popup.manifest new file mode 100644 index 0000000..75b0fa5 --- /dev/null +++ b/packaging/org.tizen.usbotg-unmount-popup.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/system-popup.spec b/packaging/system-popup.spec new file mode 100755 index 0000000..7e3d666 --- /dev/null +++ b/packaging/system-popup.spec @@ -0,0 +1,172 @@ +Name: system-popup +Summary: system-popup application (poweroff popup,sysevent-alert) +Version: 0.1.13 +Release: 2 +Group: framework-system +License: APLv2 +Source0: %{name}-%{version}.tar.bz2 +Source1001: org.tizen.poweroff-syspopup.manifest +Source1002: org.tizen.lowmem-syspopup.manifest +Source1003: org.tizen.lowbat-syspopup.manifest +Source1004: org.tizen.usbotg-syspopup.manifest +Source1005: org.tizen.usbotg-unmount-popup.manifest +Source1006: org.tizen.mmc-syspopup.manifest +BuildRequires: pkgconfig(evas) +BuildRequires: pkgconfig(ecore-input) +BuildRequires: pkgconfig(ethumb) +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(efreet) +BuildRequires: pkgconfig(sysman) +BuildRequires: pkgconfig(mm-sound) +BuildRequires: pkgconfig(sensor) +BuildRequires: pkgconfig(devman_haptic) +BuildRequires: pkgconfig(appcore-efl) +BuildRequires: pkgconfig(devman) +BuildRequires: pkgconfig(utilX) +BuildRequires: pkgconfig(syspopup) +BuildRequires: pkgconfig(syspopup-caller) +BuildRequires: pkgconfig(notification) +BuildRequires: pkgconfig(pmapi) +BuildRequires: pkgconfig(appsvc) +BuildRequires: pkgconfig(svi) + +BuildRequires: cmake +BuildRequires: edje-bin +BuildRequires: embryo-bin +BuildRequires: gettext-devel + +%description +system-popup application (poweroff popup,sysevent-alert). + + +%package -n org.tizen.poweroff-syspopup +Summary: system-popup application (poweroff popup,sysevent-alert) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.poweroff-syspopup +system-popup application (poweroff popup,sysevent-alert). + +%package -n org.tizen.lowmem-syspopup +Summary: system-popup application (lowbatt popup) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.lowmem-syspopup +system-popup application (lowbatt popup). + +%package -n org.tizen.lowbat-syspopup +Summary: system-popup application (lowmem popup) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.lowbat-syspopup +system-popup application (lowmem popup). + +%package -n org.tizen.usbotg-syspopup +Summary: system-popup application (usbotg popup) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.usbotg-syspopup +system-popup application (usbotg popup). + +%package -n org.tizen.usbotg-unmount-popup +Summary: system-popup application (usbotg unmount popup) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.usbotg-unmount-popup +system-popup application (usbotg unmount popup). + +%package -n org.tizen.mmc-syspopup +Summary: system-popup application (mmc popup) +Group: main +Requires: %{name} = %{version}-%{release} + +%description -n org.tizen.mmc-syspopup +system-popup application (mmc popup). + +%prep +%setup -q + + +%build +cp %{SOURCE1001} . +cp %{SOURCE1002} . +cp %{SOURCE1003} . +cp %{SOURCE1004} . +cp %{SOURCE1005} . +cp %{SOURCE1006} . +cmake . -DCMAKE_INSTALL_PREFIX=/usr +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + + +%files +%defattr(-,root,root,-) + + +%files -n org.tizen.poweroff-syspopup +%manifest org.tizen.poweroff-syspopup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.poweroff-syspopup/bin/poweroff-popup +/usr/apps/org.tizen.poweroff-syspopup/res/edje/poweroff/poweroff.edj +/usr/apps/org.tizen.poweroff-syspopup/res/icon/org.tizen.poweroff-syspopup.png +/usr/share/packages/org.tizen.poweroff-syspopup.xml +/usr/share/process-info/poweroff-popup.ini +/usr/apps/org.tizen.poweroff-syspopup/res/locale/*/LC_MESSAGES/*.mo + +%files -n org.tizen.lowmem-syspopup +%manifest org.tizen.lowmem-syspopup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.lowmem-syspopup/bin/lowmem-popup +/usr/apps/org.tizen.lowmem-syspopup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.lowmem-syspopup/res/edje/lowmem/lowmem.edj +/usr/apps/org.tizen.lowmem-syspopup/res/icon/org.tizen.lowmem-syspopup.png +/usr/share/packages/org.tizen.lowmem-syspopup.xml +/usr/share/process-info/lowmem-popup.ini +/usr/apps/org.tizen.lowmem-syspopup/res/locale/*/LC_MESSAGES/*.mo + +%files -n org.tizen.lowbat-syspopup +%manifest org.tizen.lowbat-syspopup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.lowbat-syspopup/bin/lowbatt-popup +/usr/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt/lowbatt.edj +/usr/apps/org.tizen.lowbat-syspopup/res/locale/*/LC_MESSAGES/*.mo +/usr/apps/org.tizen.lowbat-syspopup/res/icon/org.tizen.lowbat-syspopup.png +/usr/share/packages/org.tizen.lowbat-syspopup.xml +/usr/share/process-info/lowbatt-popup.ini + +%files -n org.tizen.usbotg-syspopup +%manifest org.tizen.usbotg-syspopup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.usbotg-syspopup/bin/usbotg-popup +/usr/apps/org.tizen.usbotg-syspopup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.usbotg-syspopup/res/edje/usbotg/usbotg.edj +/usr/apps/org.tizen.usbotg-syspopup/res/icons/usb_icon.png +/usr/apps/org.tizen.usbotg-syspopup/res/icon/org.tizen.usbotg-syspopup.png +/usr/share/packages/org.tizen.usbotg-syspopup.xml +/usr/share/process-info/usbotg-popup.ini +/usr/apps/org.tizen.usbotg-syspopup/res/locale/*/LC_MESSAGES/*.mo + +%files -n org.tizen.usbotg-unmount-popup +%manifest org.tizen.usbotg-unmount-popup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.usbotg-unmount-popup/bin/usbotg-unmount-popup +/usr/apps/org.tizen.usbotg-unmount-popup/res/keysound/02_Warning.wav +/usr/apps/org.tizen.usbotg-unmount-popup/res/edje/usbotg-unmount/usbotg-unmount.edj +/usr/apps/org.tizen.usbotg-unmount-popup/res/icon/org.tizen.usbotg-unmount-popup.png +/usr/share/packages/org.tizen.usbotg-unmount-popup.xml +/usr/share/process-info/usbotg-unmount-popup.ini +/usr/apps/org.tizen.usbotg-unmount-popup/res/locale/*/LC_MESSAGES/*.mo +%files -n org.tizen.mmc-syspopup +%manifest org.tizen.mmc-syspopup.manifest +%defattr(-,root,root,-) +/usr/apps/org.tizen.mmc-syspopup/bin/mmc-popup +/usr/share/packages/org.tizen.mmc-syspopup.xml +/usr/share/process-info/mmc-popup.ini +/usr/apps/org.tizen.mmc-syspopup/res/locale/*/LC_MESSAGES/*.mo diff --git a/poweroff-popup/CMakeLists.txt b/poweroff-popup/CMakeLists.txt new file mode 100755 index 0000000..3dd85b0 --- /dev/null +++ b/poweroff-popup/CMakeLists.txt @@ -0,0 +1,66 @@ + +#################### Poweroff ######################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(poweroff-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/poweroff-popup/src/poweroff.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/poweroff-popup) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound syspopup syspopup-caller +mm-keysound sysman utilX bundle pmapi evas ecore-evas notification vconf ecore-input appsvc) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_C_FLAGS_RELEASE "-O2 ") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) + +ADD_CUSTOM_TARGET(poweroff.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/images + ${CMAKE_SOURCE_DIR}/edcs/poweroff.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/poweroff.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edcs/poweroff.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} poweroff.edj) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.poweroff-syspopup/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/poweroff.edj DESTINATION /usr/apps/org.tizen.poweroff-syspopup/res/edje/poweroff) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.poweroff-syspopup.png DESTINATION /usr/apps/org.tizen.poweroff-syspopup/res/icon) + + +# install manifest xml file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.poweroff-syspopup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_poweroff) + diff --git a/poweroff-popup/po_poweroff/CMakeLists.txt b/poweroff-popup/po_poweroff/CMakeLists.txt new file mode 100644 index 0000000..21e6713 --- /dev/null +++ b/poweroff-popup/po_poweroff/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.poweroff-syspopup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles}) diff --git a/poweroff-popup/po_poweroff/ar.po b/poweroff-popup/po_poweroff/ar.po new file mode 100755 index 0000000..a052535 --- /dev/null +++ b/poweroff-popup/po_poweroff/ar.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "إيقاف تشغيل" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "نوم" + +msgid "IDS_COM_SK_CANCEL" +msgstr "إلغاء" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "قارئ الشاشة (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "إمكانية الوصول" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "إلغاء تفعيل الألوان السلبية" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "تفعيل الألوان السلبية" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "إلغاء تفعيل التكبير/التصغير" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "تفعيل التكبير/التصغير" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "تشغيل الضوء المساعد" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "إيقاف تشغيل الضوء المساعد" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "خيارات الهاتف" + diff --git a/poweroff-popup/po_poweroff/az.po b/poweroff-popup/po_poweroff/az.po new file mode 100755 index 0000000..e0319a5 --- /dev/null +++ b/poweroff-popup/po_poweroff/az.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Söndür" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Yuxu" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Ləğv et" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekran oxuyucusu (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Xüsusi imkanlar" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Neqativ rəngləri qeyri-aktiv et" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Neqativ rəngləri aktivləşdir" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Miqyası qeyri-aktiv et" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Miqyası aktivləşdir" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Köməkçi işığı yandır" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Köməkçi işığı söndür" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonun seçimləri" + diff --git a/poweroff-popup/po_poweroff/bg.po b/poweroff-popup/po_poweroff/bg.po new file mode 100755 index 0000000..1204239 --- /dev/null +++ b/poweroff-popup/po_poweroff/bg.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Изключен" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Заспал" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Отмени" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Екранен четец (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Достъпност" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Деактивиране на цветове в негатив" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Активиране на цветове в негатив" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Деактивиране на мащабиране" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Активиране на мащабиране" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Включване на помощната светлина" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Изключване на помощната светлина" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Опции на телефона" + diff --git a/poweroff-popup/po_poweroff/ca.po b/poweroff-popup/po_poweroff/ca.po new file mode 100755 index 0000000..941703b --- /dev/null +++ b/poweroff-popup/po_poweroff/ca.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Apagat" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Dormir" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancel·lar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lector de pantalla (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibilitat" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Deshabilitar colors negatius" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Habilitar colors negatius" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Deshabilitar zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Habilitar zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Encendre llum d'assistència" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Apagar llum d'assistència" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opcions del telèfon" + diff --git a/poweroff-popup/po_poweroff/cs.po b/poweroff-popup/po_poweroff/cs.po new file mode 100755 index 0000000..cb7cbaf --- /dev/null +++ b/poweroff-popup/po_poweroff/cs.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Vypnutí" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Spánek" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Zrušit" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Čtečka displeje (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Usnadnění" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Vypnout negativní barvy" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Zapnout negativní barvy" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Vypnout lupu" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zapnout lupu" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Zapnout pomocné osvětlení" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Vypnout pomocné osvětlení" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Možnosti telefonu" + diff --git a/poweroff-popup/po_poweroff/da.po b/poweroff-popup/po_poweroff/da.po new file mode 100755 index 0000000..d71cf12 --- /dev/null +++ b/poweroff-popup/po_poweroff/da.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Sluk" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sover" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Annuller" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Skærmlæser (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Tilgængelighed" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Deaktivér negative farver" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Aktivér negative farver" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Deaktiver zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Aktiver zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Tænd hjælpelys" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Sluk hjælpelys" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonindstillinger" + diff --git a/poweroff-popup/po_poweroff/de_DE.po b/poweroff-popup/po_poweroff/de_DE.po new file mode 100755 index 0000000..11cb21a --- /dev/null +++ b/poweroff-popup/po_poweroff/de_DE.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Ausschalten" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Schlafen" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Abbrechen" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Bildschirm-Reader (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Eingabehilfe" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Negativfarben deaktivieren" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Negativfarben aktivieren" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Zoom deaktivieren" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zoom aktivieren" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Hilfsbeleuchtung einschalten" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Hilfsbeleuchtung ausschalten" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonoptionen" + diff --git a/poweroff-popup/po_poweroff/el_GR.po b/poweroff-popup/po_poweroff/el_GR.po new file mode 100755 index 0000000..3b420b0 --- /dev/null +++ b/poweroff-popup/po_poweroff/el_GR.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Απενεργοποίηση" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Ύπνος" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Άκυρο" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Λόγος πλευρ. οθ." + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Προσβασιμότητα" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Απενεργοποίηση αρνητικών χρωμάτων" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Ενεργοποίηση αρνητικών χρωμάτων" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Απενεργοποίηση του ζουμ" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Ενεργοποίηση του ζουμ" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Ενεργοποίηση του βοηθητικού φωτός" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Απενεργοποίηση του βοηθητικού φωτός" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Επιλογές τηλεφώνου" + diff --git a/poweroff-popup/po_poweroff/en.po b/poweroff-popup/po_poweroff/en.po new file mode 100755 index 0000000..7308d5a --- /dev/null +++ b/poweroff-popup/po_poweroff/en.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Power off" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sleep" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancel" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Screen reader (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibility" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Disable negative colours" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Enable negative colours" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Disable zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Enable zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Turn on assistive light" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Turn off assistive light" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Phone options" + diff --git a/poweroff-popup/po_poweroff/en_PH.po b/poweroff-popup/po_poweroff/en_PH.po new file mode 100755 index 0000000..7f454b7 --- /dev/null +++ b/poweroff-popup/po_poweroff/en_PH.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Power off" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sleep" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancel" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Screen reader (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibility" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Disable negative colors" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Enable negative colors" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Disable zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Enable zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Turn on assistive light" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Turn off assistive light" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Phone options" + diff --git a/poweroff-popup/po_poweroff/en_US.po b/poweroff-popup/po_poweroff/en_US.po new file mode 100755 index 0000000..7f454b7 --- /dev/null +++ b/poweroff-popup/po_poweroff/en_US.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Power off" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sleep" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancel" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Screen reader (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibility" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Disable negative colors" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Enable negative colors" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Disable zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Enable zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Turn on assistive light" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Turn off assistive light" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Phone options" + diff --git a/poweroff-popup/po_poweroff/es_ES.po b/poweroff-popup/po_poweroff/es_ES.po new file mode 100755 index 0000000..0e56318 --- /dev/null +++ b/poweroff-popup/po_poweroff/es_ES.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Apagar" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Suspender" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancelar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lector de pantalla (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accesibilidad" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desactivar colores negativos" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activar colores negativos" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desactivar zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activar zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Encender luz de asistencia" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Apagar luz de asistencia" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opciones del teléfono" + diff --git a/poweroff-popup/po_poweroff/es_US.po b/poweroff-popup/po_poweroff/es_US.po new file mode 100755 index 0000000..edbd674 --- /dev/null +++ b/poweroff-popup/po_poweroff/es_US.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Apagar" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Suspender" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancelar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lector de pantalla (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accesibilidad" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desactivar colores negativos" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activar colores negativos" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desactivar acercamiento" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activar acercamiento" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Activar luz de asistencia" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Desactivar luz de asistencia" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opciones del teléfono" + diff --git a/poweroff-popup/po_poweroff/et.po b/poweroff-popup/po_poweroff/et.po new file mode 100755 index 0000000..22a5709 --- /dev/null +++ b/poweroff-popup/po_poweroff/et.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Toide väljas" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Magan" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Tühista" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekraanilugeja (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Juurdepääs" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desaktiveeri negatiivivärvid" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Aktiveeri negatiivivärvid" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desaktiveeri suum" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Aktiveeri suum" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Lülita abivalgus sisse" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Lülita abivalgus välja" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefoni valikud" + diff --git a/poweroff-popup/po_poweroff/eu.po b/poweroff-popup/po_poweroff/eu.po new file mode 100755 index 0000000..58846b9 --- /dev/null +++ b/poweroff-popup/po_poweroff/eu.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Itzali" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Lo" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Ezeztatu" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Pant. irakurgailua (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Erabilgarritasuna" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Ezgaitu kolore negatiboak" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Gaitu kolore negatiboak" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Ezgaitu zooma" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Gaitu zooma" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Piztu laguntza argia" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Itzali laguntza argia" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonoaren aukerak" + diff --git a/poweroff-popup/po_poweroff/fi.po b/poweroff-popup/po_poweroff/fi.po new file mode 100755 index 0000000..5cde57c --- /dev/null +++ b/poweroff-popup/po_poweroff/fi.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Virta pois päältä" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Uni" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Peruuta" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Näytönlukija (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Helppokäyttöisyys" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Poista negatiivivärit käytöstä" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Ota negatiivivärit käyttöön" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Poista zoomaus käytöstä" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Ota zoomaus käyttöön" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Ota apuvalo käyttöön" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Poista apuvalo käytöstä" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Puhelimen asetukset" + diff --git a/poweroff-popup/po_poweroff/fr_CA.po b/poweroff-popup/po_poweroff/fr_CA.po new file mode 100755 index 0000000..7bbc261 --- /dev/null +++ b/poweroff-popup/po_poweroff/fr_CA.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Mise hors tension" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Endormi" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Annuler" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lecteur d'écran (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibilité" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Désactiver les couleurs négatives" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activer les couleurs négatives" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Désactiver le zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activer le zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Activer la lumière d'assistance" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Désactiver la lumière d'assistance" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Options du téléphone" + diff --git a/poweroff-popup/po_poweroff/fr_FR.po b/poweroff-popup/po_poweroff/fr_FR.po new file mode 100755 index 0000000..41867a0 --- /dev/null +++ b/poweroff-popup/po_poweroff/fr_FR.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Éteindre" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sommeil" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Annuler" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lecteur d'écran (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibilité" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Désactiver les couleurs négatives" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activer les couleurs négatives" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Désactiver le zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activer le zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Activer la lumière d'assistance" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Désactiver la lumière d'assistance" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Options du téléphone" + diff --git a/poweroff-popup/po_poweroff/ga.po b/poweroff-popup/po_poweroff/ga.po new file mode 100755 index 0000000..abf3494 --- /dev/null +++ b/poweroff-popup/po_poweroff/ga.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Cumhacht as" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Codladh" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cuir ar ceal" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Léitheoir scáileáin (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Inrochtaineacht" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Díchumasaigh dathanna claonchló" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Cumasaigh dathanna claonchló" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Díchumasaigh zúmáil" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Cumasaigh zúmáil" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Cas air solas cúnta" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Cas as solas cúnta" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Roghanna an fhóin" + diff --git a/poweroff-popup/po_poweroff/gl.po b/poweroff-popup/po_poweroff/gl.po new file mode 100755 index 0000000..6c5cc8a --- /dev/null +++ b/poweroff-popup/po_poweroff/gl.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Apagar" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Durmir" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancelar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lector de pantalla (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accesibilidade" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desactivar cores negativas" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activar cores negativas" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desactivar zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activar zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Activar luz de asistencia" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Desactivar luz de asistencia" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opcións do teléfono" + diff --git a/poweroff-popup/po_poweroff/hi.po b/poweroff-popup/po_poweroff/hi.po new file mode 100755 index 0000000..da01ea9 --- /dev/null +++ b/poweroff-popup/po_poweroff/hi.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "पावर बंद" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "सोना" + +msgid "IDS_COM_SK_CANCEL" +msgstr "रद्द" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_COM_SK_OK" +msgstr "ठीक" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "स्‍क्रीन रीडर (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "पहुँच" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "नेगेटिव रंग अक्षम करें" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "नेगेटिव रंग सक्षम करें" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "ज़ूम अक्षम करें" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "ज़ूम सक्षम करें" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "सहायक लाइट चालू करें" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "सहायक लाइट बंद करें" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "फ़ोन विकल्‍प" + diff --git a/poweroff-popup/po_poweroff/hr.po b/poweroff-popup/po_poweroff/hr.po new file mode 100755 index 0000000..54994f6 --- /dev/null +++ b/poweroff-popup/po_poweroff/hr.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Isključivanje" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Spavanje" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Prekid" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Čitač zaslona (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Pristupačnost" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Isključi negativne boje" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Uključi negativne boje" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Isključi zum" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Uključi zum" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Uključi pomoćno svjetlo" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Isključi pomoćno svjetlo" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opcije telefona" + diff --git a/poweroff-popup/po_poweroff/hu.po b/poweroff-popup/po_poweroff/hu.po new file mode 100755 index 0000000..9c4f9ec --- /dev/null +++ b/poweroff-popup/po_poweroff/hu.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Kikapcsolás" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Alvás" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Mégse" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Szövegfelolvasó (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Kisegítő lehetőségek" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Negatív színek letiltása" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Negatív színek engedélyezése" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Zoom letiltása" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zoom engedélyezése" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Segédfény bekapcsolása" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Segédfény kikapcsolása" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefon opciói" + diff --git a/poweroff-popup/po_poweroff/hy.po b/poweroff-popup/po_poweroff/hy.po new file mode 100755 index 0000000..c9e37ec --- /dev/null +++ b/poweroff-popup/po_poweroff/hy.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Սնուցումն անջատված է" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Քնել" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Չեղարկել" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Էկրանի ընթերցիչ (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Մատչելիություն" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Կասեցնել բացասական գույները" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Ընձեռել բացասական գույները" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Կասեցնել մասշտաբավորումը" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Ընձեռել մասշտաբավորումը" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Միացնել օժանդակ լույսը" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Անջատել օժանդակ լույսը" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Հեռախոսի ընտրանքներ" + diff --git a/poweroff-popup/po_poweroff/is.po b/poweroff-popup/po_poweroff/is.po new file mode 100755 index 0000000..f19b758 --- /dev/null +++ b/poweroff-popup/po_poweroff/is.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Slökkt" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sofandi" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Hætta við" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Skjálesari (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Aðgengi" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Slökkva á negatífum litum" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Kveikja á negatífum litum" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Slökkva á aðdrætti" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Kveikja á aðdrætti" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Kveikja á hjálparljósi" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Slökkva á hjálparljósi" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Símavalkostir" + diff --git a/poweroff-popup/po_poweroff/it_IT.po b/poweroff-popup/po_poweroff/it_IT.po new file mode 100755 index 0000000..08dd4fe --- /dev/null +++ b/poweroff-popup/po_poweroff/it_IT.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Spegnimento" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Dormire" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Annulla" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Lettura schermo (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accessibilità" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Disattiva negativo" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Attiva negativo" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Disattiva zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Attiva zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Accendi luce di accesso facilitato" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Spegni luce di accesso facilitato" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opzioni telefono" + diff --git a/poweroff-popup/po_poweroff/ja_JP.po b/poweroff-popup/po_poweroff/ja_JP.po new file mode 100755 index 0000000..3564dc2 --- /dev/null +++ b/poweroff-popup/po_poweroff/ja_JP.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "電源OFF" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "スリープ" + +msgid "IDS_COM_SK_CANCEL" +msgstr "キャンセル" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "スクリーンリーダー(TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "ユーザー補助" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "ネガポジ反転を無効" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "ネガポジ反転を有効" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "ズームを無効" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "ズームを有効" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "補助ライトをON" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "補助ライトをOFF" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "端末オプション" + diff --git a/poweroff-popup/po_poweroff/ka.po b/poweroff-popup/po_poweroff/ka.po new file mode 100755 index 0000000..9c76268 --- /dev/null +++ b/poweroff-popup/po_poweroff/ka.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "კვების გამორთვა" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "ძილი" + +msgid "IDS_COM_SK_CANCEL" +msgstr "გაუქმება" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "ეკრანზე წამკითხველი (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "წვდომა" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "ნეგატივის ფერების გამორთვა" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "ნეგატივის ფერების ჩართვა" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "ზომის შეცვლის გამორთვა" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "ზომის შეცვლის ჩართვა" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "დამხმარე განათების ჩართვა" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "დამხმარე განათების გამორთვა" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "ტელეფონის ოფციები" + diff --git a/poweroff-popup/po_poweroff/kk.po b/poweroff-popup/po_poweroff/kk.po new file mode 100755 index 0000000..bff0ff3 --- /dev/null +++ b/poweroff-popup/po_poweroff/kk.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Сөндіру" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Ұйықтау" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Тоқтату" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Экран оқу құралы (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Қол жетімділік" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Теріс түстерді өшіру" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Теріс түстерді қосу" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Масштаб өшіру" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Масштаб қосу" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Көмекші шамды қосу" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Көмекші шамды өшіру" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Телефон опциялары" + diff --git a/poweroff-popup/po_poweroff/ko_KR.po b/poweroff-popup/po_poweroff/ko_KR.po new file mode 100755 index 0000000..daa4681 --- /dev/null +++ b/poweroff-popup/po_poweroff/ko_KR.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "종료" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "잠자는 중" + +msgid "IDS_COM_SK_CANCEL" +msgstr "취소" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "스크린 리더(TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "접근성" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "색상 반전 해제" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "색상 반전 실행" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "확대/축소 해제" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "확대/축소 실행" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "보조 조명 켜기" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "보조 조명 끄기" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "휴대폰 옵션" + diff --git a/poweroff-popup/po_poweroff/lt.po b/poweroff-popup/po_poweroff/lt.po new file mode 100755 index 0000000..9a57f28 --- /dev/null +++ b/poweroff-popup/po_poweroff/lt.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Išjungti" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Miegas" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Atšaukti" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekrano skaitytuvas (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Pasiekiamumas" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Išjungti negatyvo spalvas" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Įjungti negatyvo spalvas" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Išjungti mastelį" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Įjungti mastelį" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Įjungti pagalbinę lemputę" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Išjungti pagalbinę lemputę" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefono parinktys" + diff --git a/poweroff-popup/po_poweroff/lv.po b/poweroff-popup/po_poweroff/lv.po new file mode 100755 index 0000000..a430282 --- /dev/null +++ b/poweroff-popup/po_poweroff/lv.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Izslēgts" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Gulēt" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Atcelt" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekrāna lasītājs (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Pieejamība" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Deaktivizēt negatīva krāsas" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Aktivizēt negatīva krāsas" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Deaktivizēt tālummaiņu" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Aktivizēt tālummaiņu" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Ieslēgt papildu apgaismojumu" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Izslēgt papildu apgaismojumu" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Tālruņa iespējas" + diff --git a/poweroff-popup/po_poweroff/mk.po b/poweroff-popup/po_poweroff/mk.po new file mode 100755 index 0000000..a7e74b9 --- /dev/null +++ b/poweroff-popup/po_poweroff/mk.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Исклучување" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Спиење" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Откажи" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Екрански читач (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Пристапност" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Исклучи негативни бои" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Овозможи негативни бои" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Исклучи зум" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Вклучи зум" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Вклучи помошно светло" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Исклучи помошно светло" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Опции за телефонот" + diff --git a/poweroff-popup/po_poweroff/nb.po b/poweroff-popup/po_poweroff/nb.po new file mode 100755 index 0000000..b58034d --- /dev/null +++ b/poweroff-popup/po_poweroff/nb.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Slå av" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sove" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Avbryt" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Skjermleser (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Tilgjengelighet" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Deaktiver negative farger" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Aktiver negative farger" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Deaktiver zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Aktiver zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Skru på hjelpelys" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Skru av hjelpelys" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonalternativer" + diff --git a/poweroff-popup/po_poweroff/nl_NL.po b/poweroff-popup/po_poweroff/nl_NL.po new file mode 100755 index 0000000..f8d58a2 --- /dev/null +++ b/poweroff-popup/po_poweroff/nl_NL.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Uitschakelen" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Slapen" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Annuleren" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Schermlezer (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Toegankelijkheid" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Negatieve kleuren uitschakelen" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Negatieve kleuren inschakelen" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Zoomen uitschakelen" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zoomen inschakelen" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Hulpverlichting inschakelen" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Hulpverlichting uitschakelen" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefoonopties" + diff --git a/poweroff-popup/po_poweroff/pl.po b/poweroff-popup/po_poweroff/pl.po new file mode 100755 index 0000000..2e80f04 --- /dev/null +++ b/poweroff-popup/po_poweroff/pl.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Wyłączanie" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sen" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Anuluj" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Czytnik ekranu (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Dostępność" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Wyłącz kolory w negatywie" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Włącz kolory w negatywie" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Wyłącz powiększenie" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Włącz powiększenie" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Włącz latarkę" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Wyłącz latarkę" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opcje telefonu" + diff --git a/poweroff-popup/po_poweroff/pt_BR.po b/poweroff-popup/po_poweroff/pt_BR.po new file mode 100755 index 0000000..c4737e9 --- /dev/null +++ b/poweroff-popup/po_poweroff/pt_BR.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Desligar" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Dormir" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancelar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Leitor de tela (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Acessibilidade" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desativar cores negativas" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Ativar cores negativas" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desativar zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Ativar zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Ligar a luz auxiliar" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Desligar a luz auxiliar" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opções de telefone" + diff --git a/poweroff-popup/po_poweroff/pt_PT.po b/poweroff-popup/po_poweroff/pt_PT.po new file mode 100755 index 0000000..2deca46 --- /dev/null +++ b/poweroff-popup/po_poweroff/pt_PT.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Desligar" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Dormir" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Cancelar" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Leitor de ecrã (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Acessibilidade" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Desactivar cores negativas" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activar cores negativas" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Desactivar zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activar zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Ligar luz auxiliar" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Desligar luz auxiliar" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opções de telefone" + diff --git a/poweroff-popup/po_poweroff/ro.po b/poweroff-popup/po_poweroff/ro.po new file mode 100755 index 0000000..70beacb --- /dev/null +++ b/poweroff-popup/po_poweroff/ro.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Oprire" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Somn" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Anulare" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Cititor de ecran (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Accesibilitate" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Dezactivare culori negative" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Activare culori negative" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Dezactivare zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Activare zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Aprindere lumină de ajutor" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Stingere lumină de ajutor" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opţiuni telefon" + diff --git a/poweroff-popup/po_poweroff/ru_RU.po b/poweroff-popup/po_poweroff/ru_RU.po new file mode 100755 index 0000000..ed6cdd9 --- /dev/null +++ b/poweroff-popup/po_poweroff/ru_RU.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Выключение" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Сон" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Отмена" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Чтение с экрана (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Специальные возможности" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Отключить негатив" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Включить негатив" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Отключить увеличение" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Включить увеличение" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Включить подсветку" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Отключить подсветку" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Параметры телефона" + diff --git a/poweroff-popup/po_poweroff/sk.po b/poweroff-popup/po_poweroff/sk.po new file mode 100755 index 0000000..0e500a3 --- /dev/null +++ b/poweroff-popup/po_poweroff/sk.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Vypnutie" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Spánok" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Zrušiť" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Čítačka obrazovky (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Zjednodušenie ovládania" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Vypnúť negatívne farby" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Zapnúť negatívne farby" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Vypnúť priblíženie" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zapnúť priblíženie" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Zapnúť pomocné svetlo" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Vypnúť pomocné svetlo" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Možnosti telefónu" + diff --git a/poweroff-popup/po_poweroff/sl.po b/poweroff-popup/po_poweroff/sl.po new file mode 100755 index 0000000..22b609f --- /dev/null +++ b/poweroff-popup/po_poweroff/sl.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Izklop" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Spanje" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Prekliči" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Bralnik zaslona (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Dostopnost" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Onemogoči negativne barve" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Omogoči negativne barve" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Onemogoči povečavo" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Omogoči povečavo" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Vklopi pomožno lučko" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Izklopi pomožno lučko" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Možnosti telefona" + diff --git a/poweroff-popup/po_poweroff/sr.po b/poweroff-popup/po_poweroff/sr.po new file mode 100755 index 0000000..ee890cb --- /dev/null +++ b/poweroff-popup/po_poweroff/sr.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Isključivanje" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Spavaj" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Poništi" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Čitač ekrana (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Pristupačnost" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Onemogući negativne boje" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Omogući negativne boje" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Onemogući zum" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Omogući zum" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Uključi pomoćno svetlo" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Isključi pomoćno svetlo" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Opcije telefona" + diff --git a/poweroff-popup/po_poweroff/sv.po b/poweroff-popup/po_poweroff/sv.po new file mode 100755 index 0000000..a08f6ca --- /dev/null +++ b/poweroff-popup/po_poweroff/sv.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Stäng av" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Sova" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Avbryt" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Skärmläsare (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Tillgänglighet" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Inaktivera negativa färger" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Aktivera negativa färger" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Inaktivera zoom" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Aktivera zoom" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Slå på hjälpljus" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Stäng av hjälpljus" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefonalternativ" + diff --git a/poweroff-popup/po_poweroff/tr_TR.po b/poweroff-popup/po_poweroff/tr_TR.po new file mode 100755 index 0000000..000b76d --- /dev/null +++ b/poweroff-popup/po_poweroff/tr_TR.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Kapat" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Uyku" + +msgid "IDS_COM_SK_CANCEL" +msgstr "İptal" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekran okuyucu (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Erişebilirlik" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Negatif renkleri devre dışı bırak" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Negatif renkleri etkinleştir" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Zoom'u devre dışı bırak" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Zoom'u etkinleştir" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Yardımcı ışığı aç" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Yardımcı ışığı kapat" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefon seçenekleri" + diff --git a/poweroff-popup/po_poweroff/uk.po b/poweroff-popup/po_poweroff/uk.po new file mode 100755 index 0000000..736baaf --- /dev/null +++ b/poweroff-popup/po_poweroff/uk.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Живлення вимк." + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Режим сну" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Скасувати" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Прог. читан. з екр. (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Доступність" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Вимкнути відображення негативних кольорів" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Увімкнути відображення негативних кольорів" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Вимкнути масштабування" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Увімкнути масштабування" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Увімкнути допоміжне підсвічуваня" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Вимкнути допоміжне підсвічуваня" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Опції телефону" + diff --git a/poweroff-popup/po_poweroff/uz.po b/poweroff-popup/po_poweroff/uz.po new file mode 100755 index 0000000..a8cba24 --- /dev/null +++ b/poweroff-popup/po_poweroff/uz.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "Quvvat o‘ch." + +msgid "IDS_ST_BODY_SLEEP" +msgstr "Uyqu" + +msgid "IDS_COM_SK_CANCEL" +msgstr "Bekor q." + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "Ekran o‘qish vos. (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "Foydalanish imkoniyati" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "Negativ ranglarni o‘chirish" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "Negativ ranglarni yoqish" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "Masshtab o‘zgartirishni o‘chirish" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "Masshtab o‘zgartirishni yoqish" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "Yordamchi yorug‘likni yoqish" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "Yordamchi yorug‘likni o‘chirish" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "Telefon opsiyalari" + diff --git a/poweroff-popup/po_poweroff/zh_CN.po b/poweroff-popup/po_poweroff/zh_CN.po new file mode 100755 index 0000000..426fc1f --- /dev/null +++ b/poweroff-popup/po_poweroff/zh_CN.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "关机" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "休眠" + +msgid "IDS_COM_SK_CANCEL" +msgstr "取消" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "屏幕读取器(TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "辅助功能" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "禁用负色" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "启用负色" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "禁用缩放" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "启用缩放" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "开启辅助光" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "关闭辅助光" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "手机选项" + diff --git a/poweroff-popup/po_poweroff/zh_HK.po b/poweroff-popup/po_poweroff/zh_HK.po new file mode 100755 index 0000000..56e509c --- /dev/null +++ b/poweroff-popup/po_poweroff/zh_HK.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "關機" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "睡眠" + +msgid "IDS_COM_SK_CANCEL" +msgstr "取消" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "螢幕閱讀器 (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "協助工具" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "停用負色" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "啟用負色" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "停用縮放" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "啟用縮放" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "開啟輔助燈" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "關閉輔助燈" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "手機選項" + diff --git a/poweroff-popup/po_poweroff/zh_SG.po b/poweroff-popup/po_poweroff/zh_SG.po new file mode 100755 index 0000000..646c9b9 --- /dev/null +++ b/poweroff-popup/po_poweroff/zh_SG.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "关机" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "休眠" + +msgid "IDS_COM_SK_CANCEL" +msgstr "取消" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "屏幕读取器(TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "辅助工具" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "禁用负色" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "启用负色" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "禁用缩放" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "启用缩放" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "开启辅助光" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "关闭辅助光" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "手机选项" + diff --git a/poweroff-popup/po_poweroff/zh_TW.po b/poweroff-popup/po_poweroff/zh_TW.po new file mode 100755 index 0000000..413f8aa --- /dev/null +++ b/poweroff-popup/po_poweroff/zh_TW.po @@ -0,0 +1,42 @@ +msgid "IDS_ST_BODY_POWER_OFF" +msgstr "電源關閉" + +msgid "IDS_ST_BODY_SLEEP" +msgstr "睡眠" + +msgid "IDS_COM_SK_CANCEL" +msgstr "取消" + +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_ST_MBODY_SCREEN_READER_HTTS" +msgstr "螢幕讀取軟體 (TTS)" + +msgid "IDS_ST_HEADER_ACCESSIBILITY" +msgstr "協助工具" + +msgid "IDS_ST_BODY_DISABLE_NEGATIVE_COLOURS" +msgstr "停用負色" + +msgid "IDS_ST_BODY_ENABLE_NEGATIVE_COLOURS" +msgstr "啟用負色" + +msgid "IDS_ST_BODY_DISABLE_ZOOM" +msgstr "停用縮放" + +msgid "IDS_ST_BODY_ENABLE_ZOOM" +msgstr "啟用縮放" + +msgid "IDS_ST_BODY_TURN_ON_ASSISTIVE_LIGHT" +msgstr "開啟輔助燈光" + +msgid "IDS_ST_BODY_TURN_OFF_ASSISTIVE_LIGHT" +msgstr "關閉輔助燈光" + +msgid "IDS_COM_BODY_PHONE_OPTIONS" +msgstr "手機選項" + diff --git a/poweroff-popup/src/poweroff.c b/poweroff-popup/src/poweroff.c new file mode 100755 index 0000000..a7b9bbf --- /dev/null +++ b/poweroff-popup/src/poweroff.c @@ -0,0 +1,394 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#include +#include +#include +#include +#include +#include +#include +#include "poweroff.h" + +#include +#include +#include + +/* Time profiling support */ +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +#include +#include + +int create_and_show_basic_popup_min(struct appdata *ad); +void poweroff_response_yes_cb_min(void *data, Evas_Object * obj, void *event_info); +void poweroff_response_no_cb_min(void *data, Evas_Object * obj, void *event_info); + + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object * obj, void *event) +{ + elm_exit(); +} + +/* Quit */ +static void main_quit_cb(void *data, Evas_Object * obj, const char *emission, + const char *source) +{ + elm_exit(); +} + +/* Update text font */ +static void update_ts(Evas_Object * eo, struct text_part *tp, int size) +{ + int i; + + if (eo == NULL || tp == NULL || size < 0) + return; + + for (i = 0; i < size; i++) { + if (tp[i].part && tp[i].msgid) + edje_object_part_text_set(eo, tp[i].part, + _(tp[i].msgid)); + } +} + +/* Language changed noti handler */ +static int lang_changed(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main == NULL) + return 0; + + update_ts(elm_layout_edje_get(ad->layout_main), main_txt, + sizeof(main_txt) / sizeof(main_txt[0])); + return 0; +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Read from EDJ file */ +static Evas_Object *load_edj(Evas_Object * parent, const char *file, + const char *group) +{ + Evas_Object *eo; + int r; + + eo = elm_layout_add(parent); + if (eo) { + r = elm_layout_file_set(eo, file, group); + if (!r) { + evas_object_del(eo); + return NULL; + } + + evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + + if (syspopup_has_popup(b)) { + syspopup_reset(b); + } else { + syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + + /* Start Main UI */ + poweroff_start((void *)ad); + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +} + +/* Cleanup objects to avoid mem-leak */ +void poweroff_cleanup(struct appdata *ad) +{ + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +/* Background clicked noti */ +static void bg_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : In BG Noti \n"); + fflush(stdout); + exit(0); +} + +static void poweroff_popup_direct_cancel(keynode_t *key, void *data) +{ + int val; + struct appdata *ad = data; + if ( vconf_get_int(VCONFKEY_PM_STATE, &val) == 0 + && val == VCONFKEY_PM_STATE_LCDOFF ) { + vconf_ignore_key_changed(VCONFKEY_PM_STATE,(void*)poweroff_popup_direct_cancel); + if (ad != NULL) + poweroff_cleanup(ad); + exit(0); + } + else + return; +} +void poweroff_response_yes_cb_min(void *data, Evas_Object * obj, void *event_info) +{ + static int bPowerOff = 0; + if (1 == bPowerOff) + return; + bPowerOff = 1; + system_print("System-popup : Switching off phone !! Bye Bye \n"); + vconf_ignore_key_changed(VCONFKEY_PM_STATE,(void*)poweroff_popup_direct_cancel); + /* This will cleanup the memory */ + if (data != NULL) + poweroff_cleanup(data); + + /* Sysman API to poweroff */ + if (sysman_call_predef_action(PREDEF_POWEROFF, 0) == -1) { + system_print("System-popup : failed to request poweroff to system_server \n"); + system("poweroff"); + } +// exit(0); +} + +void poweroff_response_no_cb_min(void *data, Evas_Object * obj, void *event_info) +{ + system_print("\nSystem-popup: Option is Wrong"); + vconf_ignore_key_changed(VCONFKEY_PM_STATE,(void*)poweroff_popup_direct_cancel); + if(data != NULL) + poweroff_cleanup(data); + exit(0); +} + +int create_and_show_basic_popup_min(struct appdata *ad) +{ + Evas_Object *btn1; + Evas_Object *btn2; + + ad->popup_poweroff = elm_popup_add(ad->win_main); + if (ad->popup_poweroff == NULL) { + system_print("\n System-popup : Add popup failed \n"); + return -1; + } + + evas_object_size_hint_weight_set(ad->popup_poweroff, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_style_set(ad->popup_poweroff, "transparent"); + elm_object_text_set(ad->popup_poweroff, _("IDS_ST_BODY_POWER_OFF")); + elm_object_part_text_set(ad->popup_poweroff, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup_poweroff); + elm_object_text_set(btn1, _("IDS_COM_SK_OK")); + elm_object_part_content_set(ad->popup_poweroff, "button1", btn1); + elm_object_style_set (btn1,"popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", poweroff_response_yes_cb_min, ad); + btn2 = elm_button_add(ad->popup_poweroff); + elm_object_text_set(btn2, _("IDS_COM_SK_CANCEL")); + elm_object_part_content_set(ad->popup_poweroff, "button2", btn2); + elm_object_style_set (btn2,"popup_button/default"); + evas_object_smart_callback_add(btn2, "clicked", poweroff_response_no_cb_min, ad); + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup_poweroff); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + utilx_grab_key(ecore_x_display_get(), xwin, KEY_SELECT, SHARED_GRAB); + ecore_event_handler_add(ECORE_EVENT_KEY_UP, poweroff_response_no_cb_min, NULL); + evas_object_show(ad->popup_poweroff); + vconf_notify_key_changed(VCONFKEY_PM_STATE, poweroff_popup_direct_cancel, ad); + + return 0; + +} + +static void bg_noti_cb(void *data) +{ + ui_bgimg_reload((Evas_Object *) data); +} + +/* Create indicator bar */ +static int poweroff_create_indicator(struct appdata *ad) +{ + + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_HIDE); + return 0; +} + +/* Play vibration */ +static int poweroff_play_vibration() +{ + + int ret_val = 0; + int dev_handle = 0; + int mode = 0; + + /* Open the haptic device */ + dev_handle = device_haptic_open(DEV_IDX_0, mode); + if (dev_handle < 0) + return -1; + + /* Play a monotone pattern for 1s */ + ret_val = device_haptic_play_monotone(dev_handle, 1000); + device_haptic_close(dev_handle); + if (ret_val < 0) + return -1; + + return 0; + +} + +/* Start UI */ +int poweroff_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = create_and_show_basic_popup_min(ad); + if (ret_val != 0) + return -1; + + /* Change LCD brightness */ + ret_val = pm_change_state(LCD_NORMAL); + if (ret_val != 0) + return -1; + + /* Play a vibration for 1 sec */ + ret_val = poweroff_play_vibration(); + if (ret_val == -1) + system_print("\n Poweroff : Play vibration Failed \n"); + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + + Evas_Object *win; + struct appdata *ad = data; + + /* Create window (Reqd for sys-popup) */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + elm_theme_overlay_add(NULL,EDJ_NAME); + + return 0; +} + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + /* Go into loop */ + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/poweroff-popup/src/poweroff.h b/poweroff-popup/src/poweroff.h new file mode 100644 index 0000000..b9c63f1 --- /dev/null +++ b/poweroff-popup/src/poweroff.h @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#ifndef __DEF_poweroff_H_ +#define __DEF_poweroff_H_ + +#include +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif +#define TEMP_DIR "/tmp" +#define PACKAGE "poweroff-popup" +#define APPNAME "poweroff-popup" +#define ICON_DIR PREFIX"/apps/org.tizen.poweroff-syspopup/res/images" +#define BG_IMAGE TEMP_DIR"/01_popup_bg.jpg" +#define EDJ_PATH PREFIX"/apps/org.tizen.poweroff-syspopup/res/edje/poweroff" +#define EDJ_NAME EDJ_PATH"/poweroff.edj" +#define GRP_MAIN "main" +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) +#define NEW_INDI +#define ACCT_PROF +#define PREDEF_POWEROFF "poweroff" +#define PREDEF_ENTERSLEEP "entersleep" +#define MAIN_W (480) +#define MAIN_H (800) +#define BEAT + +#define NAME_BUF_LEN 128 +#define TITLE_BUF_LEN 128 +#define CONTENT_BUF_LEN 256 + +/* Popup Response */ +enum { + POPUP_RESPONSE_YES = 0, + POPUP_RESPONSE_NO, + POPUP_RESPONSE_SLEEP +} response; + +/* Text layout */ +struct text_part { + char *part; + char *msgid; +}; + +/* Text part */ +static struct text_part main_txt[] = { + {"txt_title", N_("Poweroff"),}, + {"txt_mesg", N_(""),}, +}; + +/* Main UI structure */ +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *layout_main; + Evas_Object *popup; + Evas_Object *popup_poweroff; + Evas_Object *popup_access; + Evas_Object *genlist; + Evas_Object *genlist_access; + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + bundle *b; + + /* Added for syspopup */ + Evas_Object *title; + Evas_Object *content; + + Elm_Genlist_Item_Class itc; + Elm_Genlist_Item_Class itc1; + + double w_ratio; + double h_ratio; + +}; + +#endif /* __DEF_poweroff_H__ */ diff --git a/sound/02_Warning.wav b/sound/02_Warning.wav new file mode 100644 index 0000000..9ce5f26 Binary files /dev/null and b/sound/02_Warning.wav differ diff --git a/sound/09_Low_Battery.wav b/sound/09_Low_Battery.wav new file mode 100644 index 0000000..f61a53e Binary files /dev/null and b/sound/09_Low_Battery.wav differ diff --git a/usbotg-popup/CMakeLists.txt b/usbotg-popup/CMakeLists.txt new file mode 100755 index 0000000..44ac228 --- /dev/null +++ b/usbotg-popup/CMakeLists.txt @@ -0,0 +1,69 @@ + +########################### usbotg ########################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(usbotg-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/usbotg-popup/src/usbotg.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/usbotg-popup) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound sysman syspopup syspopup-caller ecore-evas appsvc) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g -I/usr/include/elementary-0 ") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) + +ADD_CUSTOM_TARGET(usbotg.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/../images + ${CMAKE_SOURCE_DIR}/edcs/usbotg.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/usbotg.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edcs/usbotg.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} usbotg.edj) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.usbotg-syspopup/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/usbotg.edj DESTINATION /usr/apps/org.tizen.usbotg-syspopup/res/edje/usbotg) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.usbotg-syspopup.png DESTINATION /usr/apps/org.tizen.usbotg-syspopup/res/icon) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/sound/02_Warning.wav DESTINATION /usr/apps/org.tizen.usbotg-syspopup/res/keysound) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/usb_icon.png DESTINATION /usr/apps/org.tizen.usbotg-syspopup/res/icons/) + + +# install manifest xml file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.usbotg-syspopup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_usbotg) + +################################# End ############################################## + diff --git a/usbotg-popup/po_usbotg/CMakeLists.txt b/usbotg-popup/po_usbotg/CMakeLists.txt new file mode 100644 index 0000000..1b21688 --- /dev/null +++ b/usbotg-popup/po_usbotg/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.usbotg-syspopup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po_usbotg ALL DEPENDS ${moFiles}) diff --git a/usbotg-popup/po_usbotg/ar.po b/usbotg-popup/po_usbotg/ar.po new file mode 100755 index 0000000..f8b5c99 --- /dev/null +++ b/usbotg-popup/po_usbotg/ar.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "الذاكرة لا تكفي" + +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "حجم الذاكرة منخفض" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s مغلق" + diff --git a/usbotg-popup/po_usbotg/az.po b/usbotg-popup/po_usbotg/az.po new file mode 100755 index 0000000..b2c014a --- /dev/null +++ b/usbotg-popup/po_usbotg/az.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yaddaş kifayət etmir" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Batareya azdır" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s bağlanmışdır" + diff --git a/usbotg-popup/po_usbotg/bg.po b/usbotg-popup/po_usbotg/bg.po new file mode 100755 index 0000000..6937b60 --- /dev/null +++ b/usbotg-popup/po_usbotg/bg.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Няма достатъчно памет" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Паметта е на привършване" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s затворен" + diff --git a/usbotg-popup/po_usbotg/ca.po b/usbotg-popup/po_usbotg/ca.po new file mode 100755 index 0000000..58997e5 --- /dev/null +++ b/usbotg-popup/po_usbotg/ca.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hi ha prou memòria" + +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Poca memòria" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s tancat" + diff --git a/usbotg-popup/po_usbotg/cs.po b/usbotg-popup/po_usbotg/cs.po new file mode 100755 index 0000000..1543d61 --- /dev/null +++ b/usbotg-popup/po_usbotg/cs.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s byl uzavřen" + diff --git a/usbotg-popup/po_usbotg/da.po b/usbotg-popup/po_usbotg/da.po new file mode 100755 index 0000000..d59f5c7 --- /dev/null +++ b/usbotg-popup/po_usbotg/da.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok hukommelse" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lav hukommelse" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s blev lukket" + diff --git a/usbotg-popup/po_usbotg/de_DE.po b/usbotg-popup/po_usbotg/de_DE.po new file mode 100644 index 0000000..49e052b --- /dev/null +++ b/usbotg-popup/po_usbotg/de_DE.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Speicher voll" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Wenig Speicher übrig" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s geschlossen" + diff --git a/usbotg-popup/po_usbotg/el_GR.po b/usbotg-popup/po_usbotg/el_GR.po new file mode 100644 index 0000000..563cdcd --- /dev/null +++ b/usbotg-popup/po_usbotg/el_GR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s έκλεισε" + diff --git a/usbotg-popup/po_usbotg/en.po b/usbotg-popup/po_usbotg/en.po new file mode 100644 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-popup/po_usbotg/en.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-popup/po_usbotg/en_PH.po b/usbotg-popup/po_usbotg/en_PH.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-popup/po_usbotg/en_PH.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-popup/po_usbotg/en_US.po b/usbotg-popup/po_usbotg/en_US.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-popup/po_usbotg/en_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-popup/po_usbotg/es_ES.po b/usbotg-popup/po_usbotg/es_ES.po new file mode 100644 index 0000000..fbf63aa --- /dev/null +++ b/usbotg-popup/po_usbotg/es_ES.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hay suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/usbotg-popup/po_usbotg/es_US.po b/usbotg-popup/po_usbotg/es_US.po new file mode 100755 index 0000000..907ff10 --- /dev/null +++ b/usbotg-popup/po_usbotg/es_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/usbotg-popup/po_usbotg/et.po b/usbotg-popup/po_usbotg/et.po new file mode 100755 index 0000000..6e3386c --- /dev/null +++ b/usbotg-popup/po_usbotg/et.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mälu pole piisavalt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Aku tühjeneb" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suleti" + diff --git a/usbotg-popup/po_usbotg/eu.po b/usbotg-popup/po_usbotg/eu.po new file mode 100755 index 0000000..8f30b33 --- /dev/null +++ b/usbotg-popup/po_usbotg/eu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ez dago memoria nahikoa" + +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria gutxi" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s itxita" + diff --git a/usbotg-popup/po_usbotg/fi.po b/usbotg-popup/po_usbotg/fi.po new file mode 100755 index 0000000..3f70a98 --- /dev/null +++ b/usbotg-popup/po_usbotg/fi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ei tarpeeksi muistia" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Muisti vähissä" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suljettu" + diff --git a/usbotg-popup/po_usbotg/fr_CA.po b/usbotg-popup/po_usbotg/fr_CA.po new file mode 100755 index 0000000..0c2d3ae --- /dev/null +++ b/usbotg-popup/po_usbotg/fr_CA.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/usbotg-popup/po_usbotg/fr_FR.po b/usbotg-popup/po_usbotg/fr_FR.po new file mode 100644 index 0000000..a2a8c39 --- /dev/null +++ b/usbotg-popup/po_usbotg/fr_FR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/usbotg-popup/po_usbotg/ga.po b/usbotg-popup/po_usbotg/ga.po new file mode 100755 index 0000000..637be5c --- /dev/null +++ b/usbotg-popup/po_usbotg/ga.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Easpa cuimhne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Cuimhne íseal" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s dúnta" + diff --git a/usbotg-popup/po_usbotg/gl.po b/usbotg-popup/po_usbotg/gl.po new file mode 100755 index 0000000..7344763 --- /dev/null +++ b/usbotg-popup/po_usbotg/gl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Non hai suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baixa" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s pechado" + diff --git a/usbotg-popup/po_usbotg/hi.po b/usbotg-popup/po_usbotg/hi.po new file mode 100755 index 0000000..e10e580 --- /dev/null +++ b/usbotg-popup/po_usbotg/hi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "पर्याप्‍त मेमोरी नहीं" + +msgid "IDS_COM_SK_OK" +msgstr "ठीक" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "बैटरी कम है" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s बंद" + diff --git a/usbotg-popup/po_usbotg/hr.po b/usbotg-popup/po_usbotg/hr.po new file mode 100755 index 0000000..d44a68d --- /dev/null +++ b/usbotg-popup/po_usbotg/hr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorija nedovoljna" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Malo memorije" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoren" + diff --git a/usbotg-popup/po_usbotg/hu.po b/usbotg-popup/po_usbotg/hu.po new file mode 100755 index 0000000..6e0bffa --- /dev/null +++ b/usbotg-popup/po_usbotg/hu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lezárva" + diff --git a/usbotg-popup/po_usbotg/hy.po b/usbotg-popup/po_usbotg/hy.po new file mode 100755 index 0000000..df1a7d9 --- /dev/null +++ b/usbotg-popup/po_usbotg/hy.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Չկա բավական հիշողություն" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Մարտկոցի լիցքը թույլ է" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s փակվեց" + diff --git a/usbotg-popup/po_usbotg/is.po b/usbotg-popup/po_usbotg/is.po new file mode 100755 index 0000000..7157e2c --- /dev/null +++ b/usbotg-popup/po_usbotg/is.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ekki er nægt minni" + +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Það er of lítið minni" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s var lokað" + diff --git a/usbotg-popup/po_usbotg/it_IT.po b/usbotg-popup/po_usbotg/it_IT.po new file mode 100644 index 0000000..8c0154f --- /dev/null +++ b/usbotg-popup/po_usbotg/it_IT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s chiuso" + diff --git a/usbotg-popup/po_usbotg/ja_JP.po b/usbotg-popup/po_usbotg/ja_JP.po new file mode 100644 index 0000000..03678ab --- /dev/null +++ b/usbotg-popup/po_usbotg/ja_JP.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "メモリ​が​不足​して​います。" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "メモリの容量不足です" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s​を​終了​しました" + diff --git a/usbotg-popup/po_usbotg/ka.po b/usbotg-popup/po_usbotg/ka.po new file mode 100755 index 0000000..7b3f3fd --- /dev/null +++ b/usbotg-popup/po_usbotg/ka.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "მეხსიერება არ არის საკმარისი" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "კვების ელემენტი იცლება" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s დახურულია" + diff --git a/usbotg-popup/po_usbotg/kk.po b/usbotg-popup/po_usbotg/kk.po new file mode 100755 index 0000000..0aa4d69 --- /dev/null +++ b/usbotg-popup/po_usbotg/kk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Жадында орын аз" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея заряды аз" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s жабық" + diff --git a/usbotg-popup/po_usbotg/ko_KR.po b/usbotg-popup/po_usbotg/ko_KR.po new file mode 100644 index 0000000..671ecbc --- /dev/null +++ b/usbotg-popup/po_usbotg/ko_KR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s이(가) 종료되었습니다" + diff --git a/usbotg-popup/po_usbotg/lt.po b/usbotg-popup/po_usbotg/lt.po new file mode 100755 index 0000000..b65828e --- /dev/null +++ b/usbotg-popup/po_usbotg/lt.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nepakanka atminties" + +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Senkanti baterija" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s uždaryta" + diff --git a/usbotg-popup/po_usbotg/lv.po b/usbotg-popup/po_usbotg/lv.po new file mode 100755 index 0000000..9b5efb1 --- /dev/null +++ b/usbotg-popup/po_usbotg/lv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Atmiņa pilna" + +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Tukšs akumulators" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Sadaļa %s ir aizvērta" + diff --git a/usbotg-popup/po_usbotg/mk.po b/usbotg-popup/po_usbotg/mk.po new file mode 100755 index 0000000..24872b6 --- /dev/null +++ b/usbotg-popup/po_usbotg/mk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Нема доволно меморија" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Има уште малку меморија" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s се затвори" + diff --git a/usbotg-popup/po_usbotg/nb.po b/usbotg-popup/po_usbotg/nb.po new file mode 100755 index 0000000..7496536 --- /dev/null +++ b/usbotg-popup/po_usbotg/nb.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok minne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lite minne" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lukket" + diff --git a/usbotg-popup/po_usbotg/nl_NL.po b/usbotg-popup/po_usbotg/nl_NL.po new file mode 100644 index 0000000..df23352 --- /dev/null +++ b/usbotg-popup/po_usbotg/nl_NL.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s afgesloten" + diff --git a/usbotg-popup/po_usbotg/pl.po b/usbotg-popup/po_usbotg/pl.po new file mode 100755 index 0000000..4ddbfbb --- /dev/null +++ b/usbotg-popup/po_usbotg/pl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Brak pamięci" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mało pamięci" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Zamknięto %s" + diff --git a/usbotg-popup/po_usbotg/pt_BR.po b/usbotg-popup/po_usbotg/pt_BR.po new file mode 100755 index 0000000..27546d8 --- /dev/null +++ b/usbotg-popup/po_usbotg/pt_BR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memória insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Baixa memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/usbotg-popup/po_usbotg/pt_PT.po b/usbotg-popup/po_usbotg/pt_PT.po new file mode 100644 index 0000000..f2390c3 --- /dev/null +++ b/usbotg-popup/po_usbotg/pt_PT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Cartão SD cheio" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Pouca memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/usbotg-popup/po_usbotg/ro.po b/usbotg-popup/po_usbotg/ro.po new file mode 100755 index 0000000..6167017 --- /dev/null +++ b/usbotg-popup/po_usbotg/ro.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorie plină" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorie insuficientă" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s a fost închis" + diff --git a/usbotg-popup/po_usbotg/ru_RU.po b/usbotg-popup/po_usbotg/ru_RU.po new file mode 100644 index 0000000..fd06e2b --- /dev/null +++ b/usbotg-popup/po_usbotg/ru_RU.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостаточно памяти" + +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Аккумулятор разряжен" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрыт" + diff --git a/usbotg-popup/po_usbotg/sk.po b/usbotg-popup/po_usbotg/sk.po new file mode 100755 index 0000000..404d0ae --- /dev/null +++ b/usbotg-popup/po_usbotg/sk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvorené" + diff --git a/usbotg-popup/po_usbotg/sl.po b/usbotg-popup/po_usbotg/sl.po new file mode 100755 index 0000000..78cc366 --- /dev/null +++ b/usbotg-popup/po_usbotg/sl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ni dovolj pomnilnika" + +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Zmanjkuje pomnilnika" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zaprto" + diff --git a/usbotg-popup/po_usbotg/sr.po b/usbotg-popup/po_usbotg/sr.po new file mode 100755 index 0000000..7d1d1f0 --- /dev/null +++ b/usbotg-popup/po_usbotg/sr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedovoljna memorija" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorija pri kraju" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoreno" + diff --git a/usbotg-popup/po_usbotg/sv.po b/usbotg-popup/po_usbotg/sv.po new file mode 100755 index 0000000..dcb321a --- /dev/null +++ b/usbotg-popup/po_usbotg/sv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Minnet fullt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ont om minnesplats" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s har stängts" + diff --git a/usbotg-popup/po_usbotg/tr_TR.po b/usbotg-popup/po_usbotg/tr_TR.po new file mode 100644 index 0000000..bac7956 --- /dev/null +++ b/usbotg-popup/po_usbotg/tr_TR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yeterli hafıza yok" + +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Düşük hafıza" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s kapatıldı" + diff --git a/usbotg-popup/po_usbotg/uk.po b/usbotg-popup/po_usbotg/uk.po new file mode 100755 index 0000000..63f22f9 --- /dev/null +++ b/usbotg-popup/po_usbotg/uk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостатньо пам'яті" + +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея розряджена" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрито" + diff --git a/usbotg-popup/po_usbotg/uz.po b/usbotg-popup/po_usbotg/uz.po new file mode 100755 index 0000000..f774e87 --- /dev/null +++ b/usbotg-popup/po_usbotg/uz.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Xotira yetarli emas" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Bo‘sh xotira kam" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s yopildi" + diff --git a/usbotg-popup/po_usbotg/zh_CN.po b/usbotg-popup/po_usbotg/zh_CN.po new file mode 100644 index 0000000..666bc7e --- /dev/null +++ b/usbotg-popup/po_usbotg/zh_CN.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "没有足够内存" + +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/usbotg-popup/po_usbotg/zh_HK.po b/usbotg-popup/po_usbotg/zh_HK.po new file mode 100644 index 0000000..b3cf091 --- /dev/null +++ b/usbotg-popup/po_usbotg/zh_HK.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/usbotg-popup/po_usbotg/zh_SG.po b/usbotg-popup/po_usbotg/zh_SG.po new file mode 100755 index 0000000..863ea88 --- /dev/null +++ b/usbotg-popup/po_usbotg/zh_SG.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "内存不足" + +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/usbotg-popup/po_usbotg/zh_TW.po b/usbotg-popup/po_usbotg/zh_TW.po new file mode 100644 index 0000000..cf73ac9 --- /dev/null +++ b/usbotg-popup/po_usbotg/zh_TW.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/usbotg-popup/src/usbotg.c b/usbotg-popup/src/usbotg.c new file mode 100755 index 0000000..d8d4855 --- /dev/null +++ b/usbotg-popup/src/usbotg.c @@ -0,0 +1,683 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#include +#include +#include +#include +#include +#include +#include +#include "usbotg.h" +#include +#include +#include +#include +#include + +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) /* the case of 480*800 */ +#define SOUND_PATH PREFIX"/apps/org.tizen.usborg-syspopup/res/keysound/02_Warning.wav" +#define NEW_INDI + +#define DEVICE_ADDED 1 +#define DEVICE_REMOVED 0 + +#define UNKNOWN_USB_ICON_PATH PREFIX"/apps/org.tizen.usbotg-syspopup/res/icons/usb_icon.png" +#define USB_ICON_PATH PREFIX"/apps/org.tizen.usbotg-syspopup/res/icons/usb_icon.png" + +#define ACCT_PROF +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +#include + +#define USB_MOUNT_PATH "/opt/storage/usb" + +#define GALLERY_APP_NAME "org.tizen.gallery" +#define MYFILE_APP_NAME "org.tizen.myfile" +#define CAMERA_DEVICE 1 + +static int connected_device = 0; +static char *otg_path = NULL; + +int unknown_usb_noti(int option); +int camera_noti(int option, char* device_name); + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +struct text_part { + char *part; + char *msgid; +}; + +static struct text_part main_txt[] = { + {"txt_title", N_("USB otg popup"),}, + {"txt_mesg", N_(""),}, +}; + + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object *obj, void *event) +{ + elm_exit(); +} + +/* Quit */ +static void main_quit_cb(void *data, Evas_Object *obj, const char *emission, + const char *source) +{ + elm_exit(); +} + +/* Update text font */ +static void update_ts(Evas_Object *eo, struct text_part *tp, int size) +{ + int i; + + if (eo == NULL || tp == NULL || size < 0) + return; + + for (i = 0; i < size; i++) { + if (tp[i].part && tp[i].msgid) + edje_object_part_text_set(eo, tp[i].part, + _(tp[i].msgid)); + } +} + +/* Language changed noti handler */ +static int lang_changed(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main == NULL) + return 0; + + update_ts(elm_layout_edje_get(ad->layout_main), main_txt, + sizeof(main_txt) / sizeof(main_txt[0])); + return 0; +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Read from EDJ file */ +static Evas_Object *load_edj(Evas_Object * parent, const char *file, + const char *group) +{ + Evas_Object *eo; + int r; + + eo = elm_layout_add(parent); + if (eo) { + r = elm_layout_file_set(eo, file, group); + if (!r) { + evas_object_del(eo); + return NULL; + } + + evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + int removenoti = -1; + char *opt = NULL; + + opt = bundle_get_val(b, "_SYSPOPUP_CONTENT_"); + if (!strcmp(opt,"unknown_add")) { + unknown_usb_noti(DEVICE_ADDED); + } else if (!strcmp(opt,"unknown_remove")) { + unknown_usb_noti(DEVICE_REMOVED); + } else { + if(!strcmp(opt,"camera_add")) { + connected_device = CAMERA_DEVICE; + camera_noti(DEVICE_ADDED, bundle_get_val(b, "device_name")); + } else if (!strcmp(opt,"camera_remove")) { + camera_noti(DEVICE_REMOVED, NULL); + removenoti = DEVICE_REMOVED; + } else if (!strcmp(opt,"otg_add")) { + otg_path = bundle_get_val(b, "path"); + otg_noti(DEVICE_ADDED, (strrchr(otg_path, '/')+1)); + } else if (!strcmp(opt,"otg_remove")) { + otg_noti(DEVICE_REMOVED, NULL); + removenoti = DEVICE_REMOVED; + } + + if (syspopup_has_popup(b)) { + if (removenoti == DEVICE_REMOVED) + return 0; + syspopup_reset(b); + } else { + if (removenoti == DEVICE_REMOVED) + exit(0); + syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + + /* Start Main UI */ + usbotg_start((void *)ad); + } + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + //return; + + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +} + +/* Cleanup objects to avoid mem-leak */ +void usbotg_cleanup(struct appdata *ad) +{ + if (ad == NULL) + return; + + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +/* Background clicked noti */ +void bg_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : In BG Noti \n"); + fflush(stdout); + exit(0); +} + +/* Browse clicked noti */ +void browse_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : Bwose Noti \n"); + + int ret; + bundle *b; + b = bundle_create(); + + // TO DO + // launch my files with option + if (connected_device == CAMERA_DEVICE) { + appsvc_set_operation(b, APPSVC_OPERATION_VIEW); + appsvc_add_data(b, "album-id", "GALLERY_ALBUM_PTP_ID"); + appsvc_set_pkgname(b, GALLERY_APP_NAME); + ret = appsvc_run_service(b, 0, NULL, (void*)NULL); + } else { + appsvc_set_operation(b, APPSVC_OPERATION_VIEW); + if (otg_path != NULL) { + appsvc_add_data(b, "path", otg_path); + } else { + appsvc_add_data(b, "path", USB_MOUNT_PATH); + } + appsvc_set_pkgname(b, MYFILE_APP_NAME); + ret = appsvc_run_service(b, 0, NULL, (void*)NULL); + } + if (ret < 0) + system_print("app launching fail(%d)", ret); + bundle_free(b); + + fflush(stdout); + exit(0); +} + +void usbotg_clicked_cb(void *data, Evas * e, Evas_Object * obj, + void *event_info) +{ + system_print("\n system-popup : Screen clicked \n"); + fflush(stdout); + elm_exit(); + exit(0); +} + +/* Create indicator bar */ +int usbotg_create_indicator(struct appdata *ad) +{ + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_HIDE); + return 0; +} + +/* Play vibration */ +int usbotg_play_vibration() +{ + int ret_val = 0; + int dev_handle = 0; + int mode = 0; + + /* Open the haptic device */ + dev_handle = device_haptic_open(DEV_IDX_0, mode); + if (dev_handle < 0) + return -1; + + /* Play a monotone pattern for 1s */ + ret_val = device_haptic_play_monotone(dev_handle, 1000); + device_haptic_close(dev_handle); + if (ret_val < 0) + return -1; + + return 0; +} + +/* Basic popup widget */ +int usbotg_create_and_show_basic_popup(struct appdata *ad) +{ + Evas_Object *btn1; + Evas_Object *btn2; + + /* Initialization */ + int ret_val = 0; + + /* Add notify */ + /* No need to give main window, it will create internally */ + ad->popup = elm_popup_add(ad->win_main); + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_style_set(ad->popup, "transparent"); + if (connected_device == CAMERA_DEVICE) + elm_object_text_set(ad->popup, "Browse connected CAMERA?"); + else + elm_object_text_set(ad->popup, "Browse connected USB Storage?"); + elm_object_part_text_set(ad->popup, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup); + elm_object_text_set(btn1, "Browse"); + elm_object_part_content_set(ad->popup, "button1", btn1); + elm_object_style_set(btn1, "popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", browse_clicked_cb, ad); + + btn2 = elm_button_add(ad->popup); + elm_object_text_set(btn2, "Cancel"); + elm_object_part_content_set(ad->popup, "button2", btn2); + elm_object_style_set(btn2, "popup_button/default"); + evas_object_smart_callback_add(btn2, "clicked", bg_clicked_cb, ad); + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + evas_object_show(ad->popup); + + return 0; +} + +int usbotg_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = usbotg_create_and_show_basic_popup(ad); + if (ret_val != 0) + return -1; + + /* Change LCD brightness */ + ret_val = pm_change_state(LCD_NORMAL); + if (ret_val != 0) + return -1; + + /* Play vibration */ + ret_val = usbotg_play_vibration(); + if (ret_val == -1) + system_print("\n Lowmem : Play vibration failed \n"); + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + Evas_Object *win; + struct appdata *ad = data; + + /* create window */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + return 0; + +} + +int unknown_usb_noti(int option) +{ + notification_h noti = NULL; + notification_error_e noti_err = NOTIFICATION_ERROR_NONE; + + if (option == DEVICE_REMOVED) { + notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI); + system_print("unknown usb device is removed\n"); + return -1; + } else if (option == DEVICE_ADDED) { + noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI); + system_print("add notification for unknow usb device\n"); + noti = notification_new(NOTIFICATION_TYPE_NOTI, NOTIFICATION_GROUP_ID_NONE, NOTIFICATION_PRIV_ID_NONE); + if (noti == NULL) { + system_print("Errot noti == NULL\n"); + return -1; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, "Unknown USB device connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_title : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, "Unknown USB device connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_content : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, UNKNOWN_USB_ICON_PATH); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_image : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_set_property(noti, NOTIFICATION_PROP_DISABLE_APP_LAUNCH | NOTIFICATION_PROP_DISABLE_TICKERNOTI | NOTIFICATION_PROP_VOLATILE_DISPLAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_property : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_display_applist : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_insert(noti, NULL); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_insert : %d\n", noti_err); + goto UNKNOWN_USB_NOTI_FREE; + } + + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_free : %d\n", noti_err); + return -1; + } + + } + + return 0; + +UNKNOWN_USB_NOTI_FREE: + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) + system_print("Error notification_free : %d\n", noti_err); + return -1; +} + +int camera_noti(int option, char* device_name) +{ + notification_h noti = NULL; + notification_error_e noti_err = NOTIFICATION_ERROR_NONE; + + if (option == DEVICE_REMOVED) { + notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_ONGOING); + system_print("camera removed\n"); + return -1; + } else if (option == DEVICE_ADDED) { + noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_ONGOING); + system_print("add notification for camera\n"); + noti = notification_new(NOTIFICATION_TYPE_ONGOING, NOTIFICATION_GROUP_ID_NONE, NOTIFICATION_PRIV_ID_NONE); + if (noti == NULL) { + system_print("Errot noti == NULL\n"); + return -1; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, "Camera connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_title : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT, device_name, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_contents : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, "Camera connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_content : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, USB_ICON_PATH); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_image : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_set_property(noti, NOTIFICATION_PROP_DISABLE_APP_LAUNCH | NOTIFICATION_PROP_DISABLE_TICKERNOTI | NOTIFICATION_PROP_VOLATILE_DISPLAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_property : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_display_applist : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_insert(noti, NULL); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_insert : %d\n", noti_err); + goto CAMERA_NOTI_FREE; + } + + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_free : %d\n", noti_err); + return -1; + } + } + + return 0; + +CAMERA_NOTI_FREE: + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) + system_print("Error notification_free : %d\n", noti_err); + return -1; +} + +int otg_noti(int option, char* device_name) +{ + notification_h noti = NULL; + notification_error_e noti_err = NOTIFICATION_ERROR_NONE; + + if (option == DEVICE_REMOVED) { + notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_ONGOING); + system_print("usb otg removed\n"); + return -1; + } else if (option == DEVICE_ADDED) { + noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_ONGOING); + system_print("add notification for usb otg\n"); + noti = notification_new(NOTIFICATION_TYPE_ONGOING, NOTIFICATION_GROUP_ID_NONE, NOTIFICATION_PRIV_ID_NONE); + if (noti == NULL) { + system_print("Errot noti == NULL\n"); + return -1; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_TITLE, "USB mass storage connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_title : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT, device_name, NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_contents : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_set_text(noti, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, "USB mass storage connected", NULL, NOTIFICATION_VARIABLE_TYPE_NONE); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_content : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_set_image(noti, NOTIFICATION_IMAGE_TYPE_ICON, USB_ICON_PATH); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_image : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_set_property(noti, NOTIFICATION_PROP_DISABLE_TICKERNOTI | NOTIFICATION_PROP_VOLATILE_DISPLAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_property : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_display_applist : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + bundle *b; + b = bundle_create(); + appsvc_set_pkgname(b, "org.tizen.usbotg-unmount-popup"); + appsvc_add_data(b, "device_name", device_name); + + noti_err = notification_set_execute_option(noti, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, "Launch", NULL, b); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_set_execute_option : %d\n", noti_err); + bundle_free(b); + goto OTG_NOTI_FREE; + } + bundle_free(b); + + + noti_err = notification_insert(noti, NULL); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_insert : %d\n", noti_err); + goto OTG_NOTI_FREE; + } + + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) { + system_print("Error notification_free : %d\n", noti_err); + return -1; + } + } + + return 0; +OTG_NOTI_FREE: + noti_err = notification_free(noti); + if (noti_err != NOTIFICATION_ERROR_NONE) + system_print("Error notification_free : %d\n", noti_err); + return -1; +} + + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + sysconf_set_mempolicy(OOM_IGNORE); + + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/usbotg-popup/src/usbotg.h b/usbotg-popup/src/usbotg.h new file mode 100644 index 0000000..f1a841f --- /dev/null +++ b/usbotg-popup/src/usbotg.h @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#ifndef __DEF_usbotg_H_ +#define __DEF_usbotg_H_ + +#include +#include +#include +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif /* PREFIX */ + +#define TEMP_DIR "/tmp" +#define PACKAGE "usbotg-popup" +#define APPNAME "usbotg-popup" +#define ICON_DIR PREFIX"/apps/org.tizen.usbotg-syspopup/res/images" +#define BG_IMAGE TEMP_DIR"/01_popup_bg.jpg" +#define MAIN_W (480) +#define MAIN_H (800) +#define EDJ_PATH PREFIX"/apps/org.tizen.usbotg-syspopup/res/edje/usbotg" +#define EDJ_NAME EDJ_PATH"/usbotg.edj" +#define EDJ_POPUP_NAME EDJ_PATH"/usbotg_popup.edj" +#define GRP_MAIN "main" +#define GRP_POPUP "popup" +#define MAX_PROCESS_NAME 100 +#define PROCESS_NAME_FILE "/tmp/processname.txt" +#define BEAT + +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *popup; + + Evas_Object *layout_main; /* layout widget based on EDJ */ + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + + double w_ratio; + double h_ratio; + +}; + +#endif /* __DEF_usbotg_H__ */ diff --git a/usbotg-unmount-popup/CMakeLists.txt b/usbotg-unmount-popup/CMakeLists.txt new file mode 100644 index 0000000..ff88e79 --- /dev/null +++ b/usbotg-unmount-popup/CMakeLists.txt @@ -0,0 +1,67 @@ + +########################### usbotg-unmount ########################### +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(usbotg-unmount-popup C) + +SET(SRCS ${CMAKE_SOURCE_DIR}/usbotg-unmount-popup/src/usbotg-unmount.c) + +IF("${CMAKE_BUILD_TYPE}" STREQUAL "") + SET(CMAKE_BUILD_TYPE "Release") +ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "") +MESSAGE("Build type: ${CMAKE_BUILD_TYPE}") + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}) +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/usbotg-unmount-popup) + +INCLUDE(FindPkgConfig) +pkg_check_modules(pkgs REQUIRED appcore-efl elementary devman devman_haptic mm-sound sysman syspopup syspopup-caller ecore-evas appsvc) + +FOREACH(flag ${pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag} -g -I/usr/include/elementary-0 ") +ENDFOREACH(flag) + +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_C_FLAGS_DEBUG "-O0 -g") +SET(CMAKE_C_FLAGS_RELEASE "-O2") + +FIND_PROGRAM(UNAME NAMES uname) +EXEC_PROGRAM("${UNAME}" ARGS "-m" OUTPUT_VARIABLE "ARCH") +IF("${ARCH}" STREQUAL "arm") + ADD_DEFINITIONS("-DTARGET") + MESSAGE("add -DTARGET") +ENDIF("${ARCH}" STREQUAL "arm") + +ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"") +ADD_DEFINITIONS("-DSLP_DEBUG") + +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed") + +ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS}) + +ADD_CUSTOM_TARGET(usbotg-unmount.edj + COMMAND edje_cc -id ${CMAKE_SOURCE_DIR}/../images + ${CMAKE_SOURCE_DIR}/edcs/usbotg-unmount.edc ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/usbotg-unmount.edj + DEPENDS ${CMAKE_SOURCE_DIR}/edcs/usbotg-unmount.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} usbotg-unmount.edj) + +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /usr/apps/org.tizen.usbotg-unmount-popup/bin) +INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/usbotg-unmount.edj DESTINATION /usr/apps/org.tizen.usbotg-unmount-popup/res/edje/usbotg-unmount) + +# install desktop file & icon +SET(PREFIX ${CMAKE_INSTALL_PREFIX}) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.usbotg-unmount-popup.png DESTINATION /usr/apps/org.tizen.usbotg-unmount-popup/res/icon) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/sound/02_Warning.wav DESTINATION /usr/apps/org.tizen.usbotg-unmount-popup/res/keysound) + +# install manifest xml file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/org.tizen.usbotg-unmount-popup.xml DESTINATION /usr/share/packages/) + +# install ini file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/data/${PROJECT_NAME}.ini DESTINATION /usr/share/process-info) + +# i18n +ADD_SUBDIRECTORY(po_usbotg_unmount) + +################################# End ############################################## + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/CMakeLists.txt b/usbotg-unmount-popup/po_usbotg_unmount/CMakeLists.txt new file mode 100644 index 0000000..a5d511d --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/CMakeLists.txt @@ -0,0 +1,24 @@ +# for i18n + +SET(POFILES ar.po el_GR.po es_ES.po fi.po gl.po hy.po ka.po lv.po pl.po ru_RU.po sv.po zh_CN.po az.po cs.po en_PH.po es_US.po fr_CA.po hi.po is.po kk.po mk.po pt_BR.po sk.po tr_TR.po zh_HK.po bg.po da.po en.po et.po fr_FR.po hr.po it_IT.po ko_KR.po nb.po pt_PT.po sl.po uk.po zh_SG.po ca.po de_DE.po en_US.po eu.po ga.po hu.po ja_JP.po lt.po nl_NL.po ro.po sr.po uz.po zh_TW.po) + +SET(MSGFMT "/usr/bin/msgfmt") + +FOREACH(pofile ${POFILES}) + SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}) + MESSAGE("PO: ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} + DESTINATION /usr/apps/org.tizen.usbotg-unmount-popup/res/locale/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +MESSAGE(".mo files: ${moFiles}") +ADD_CUSTOM_TARGET(po_usbotg_unmount ALL DEPENDS ${moFiles}) diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ar.po b/usbotg-unmount-popup/po_usbotg_unmount/ar.po new file mode 100755 index 0000000..f8b5c99 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ar.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "معلومات النظام" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "الذاكرة لا تكفي" + +msgid "IDS_COM_SK_OK" +msgstr "موافق" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "حجم الذاكرة منخفض" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s مغلق" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/az.po b/usbotg-unmount-popup/po_usbotg_unmount/az.po new file mode 100755 index 0000000..b2c014a --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/az.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistm mlmtı" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yaddaş kifayət etmir" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Batareya azdır" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s bağlanmışdır" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/bg.po b/usbotg-unmount-popup/po_usbotg_unmount/bg.po new file mode 100755 index 0000000..6937b60 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/bg.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. инф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Няма достатъчно памет" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Паметта е на привършване" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s затворен" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ca.po b/usbotg-unmount-popup/po_usbotg_unmount/ca.po new file mode 100755 index 0000000..58997e5 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ca.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hi ha prou memòria" + +msgid "IDS_COM_SK_OK" +msgstr "Acceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Poca memòria" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s tancat" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/cs.po b/usbotg-unmount-popup/po_usbotg_unmount/cs.po new file mode 100755 index 0000000..1543d61 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/cs.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatek paměti" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s byl uzavřen" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/da.po b/usbotg-unmount-popup/po_usbotg_unmount/da.po new file mode 100755 index 0000000..d59f5c7 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/da.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok hukommelse" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lav hukommelse" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s blev lukket" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/de_DE.po b/usbotg-unmount-popup/po_usbotg_unmount/de_DE.po new file mode 100644 index 0000000..49e052b --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/de_DE.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Speicher voll" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Wenig Speicher übrig" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s geschlossen" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/el_GR.po b/usbotg-unmount-popup/po_usbotg_unmount/el_GR.po new file mode 100644 index 0000000..563cdcd --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/el_GR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Πληρ. Συστήμ." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ανεπαρκής μνήμη" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s έκλεισε" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/en.po b/usbotg-unmount-popup/po_usbotg_unmount/en.po new file mode 100644 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/en.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/en_PH.po b/usbotg-unmount-popup/po_usbotg_unmount/en_PH.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/en_PH.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/en_US.po b/usbotg-unmount-popup/po_usbotg_unmount/en_US.po new file mode 100755 index 0000000..aa34c4b --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/en_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "System info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Not enough memory" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Low memory" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s closed" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/es_ES.po b/usbotg-unmount-popup/po_usbotg_unmount/es_ES.po new file mode 100644 index 0000000..fbf63aa --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/es_ES.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Información del sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "No hay suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/es_US.po b/usbotg-unmount-popup/po_usbotg_unmount/es_US.po new file mode 100755 index 0000000..907ff10 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/es_US.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Inf. sistem." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baja" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s cerrado" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/et.po b/usbotg-unmount-popup/po_usbotg_unmount/et.po new file mode 100755 index 0000000..6e3386c --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/et.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Süst.teave" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mälu pole piisavalt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Aku tühjeneb" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suleti" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/eu.po b/usbotg-unmount-popup/po_usbotg_unmount/eu.po new file mode 100755 index 0000000..8f30b33 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/eu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ez dago memoria nahikoa" + +msgid "IDS_COM_SK_OK" +msgstr "Ados" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria gutxi" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s itxita" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/fi.po b/usbotg-unmount-popup/po_usbotg_unmount/fi.po new file mode 100755 index 0000000..3f70a98 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/fi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Järj.tied." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ei tarpeeksi muistia" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Muisti vähissä" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s suljettu" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/fr_CA.po b/usbotg-unmount-popup/po_usbotg_unmount/fr_CA.po new file mode 100755 index 0000000..0c2d3ae --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/fr_CA.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/fr_FR.po b/usbotg-unmount-popup/po_usbotg_unmount/fr_FR.po new file mode 100644 index 0000000..a2a8c39 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/fr_FR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Infos système" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Mémoire insuffisante" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mémoire faible" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fermé" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ga.po b/usbotg-unmount-popup/po_usbotg_unmount/ga.po new file mode 100755 index 0000000..637be5c --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ga.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Fais. Chórais" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Easpa cuimhne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Cuimhne íseal" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s dúnta" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/gl.po b/usbotg-unmount-popup/po_usbotg_unmount/gl.po new file mode 100755 index 0000000..7344763 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/gl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sist" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Non hai suficiente memoria" + +msgid "IDS_COM_SK_OK" +msgstr "Aceptar" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria baixa" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s pechado" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/hi.po b/usbotg-unmount-popup/po_usbotg_unmount/hi.po new file mode 100755 index 0000000..e10e580 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/hi.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "सिस्टम जानका." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "पर्याप्‍त मेमोरी नहीं" + +msgid "IDS_COM_SK_OK" +msgstr "ठीक" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "बैटरी कम है" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s बंद" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/hr.po b/usbotg-unmount-popup/po_usbotg_unmount/hr.po new file mode 100755 index 0000000..d44a68d --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/hr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "O sustavu" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorija nedovoljna" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Malo memorije" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoren" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/hu.po b/usbotg-unmount-popup/po_usbotg_unmount/hu.po new file mode 100755 index 0000000..6e0bffa --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/hu.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "R.szerinfó" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Kevés a memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lezárva" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/hy.po b/usbotg-unmount-popup/po_usbotg_unmount/hy.po new file mode 100755 index 0000000..df1a7d9 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/hy.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Հմկրգ ինֆո" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Չկա բավական հիշողություն" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Մարտկոցի լիցքը թույլ է" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s փակվեց" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/is.po b/usbotg-unmount-popup/po_usbotg_unmount/is.po new file mode 100755 index 0000000..7157e2c --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/is.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Kerfisuppl" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ekki er nægt minni" + +msgid "IDS_COM_SK_OK" +msgstr "Í lagi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Það er of lítið minni" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s var lokað" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/it_IT.po b/usbotg-unmount-popup/po_usbotg_unmount/it_IT.po new file mode 100644 index 0000000..8c0154f --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/it_IT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memoria insufficiente" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s chiuso" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ja_JP.po b/usbotg-unmount-popup/po_usbotg_unmount/ja_JP.po new file mode 100644 index 0000000..03678ab --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ja_JP.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "システム​情報" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "メモリ​が​不足​して​います。" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "メモリの容量不足です" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s​を​終了​しました" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ka.po b/usbotg-unmount-popup/po_usbotg_unmount/ka.po new file mode 100755 index 0000000..7b3f3fd --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ka.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "სისტემ.ინფო" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "მეხსიერება არ არის საკმარისი" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "კვების ელემენტი იცლება" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s დახურულია" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/kk.po b/usbotg-unmount-popup/po_usbotg_unmount/kk.po new file mode 100755 index 0000000..0aa4d69 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/kk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Жүйе. ақп." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Жадында орын аз" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея заряды аз" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s жабық" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ko_KR.po b/usbotg-unmount-popup/po_usbotg_unmount/ko_KR.po new file mode 100644 index 0000000..671ecbc --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ko_KR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "시스템 정보" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_COM_SK_OK" +msgstr "확인" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "메모리가 부족합니다" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s이(가) 종료되었습니다" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/lt.po b/usbotg-unmount-popup/po_usbotg_unmount/lt.po new file mode 100755 index 0000000..b65828e --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/lt.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inform." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nepakanka atminties" + +msgid "IDS_COM_SK_OK" +msgstr "Gerai" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Senkanti baterija" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s uždaryta" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/lv.po b/usbotg-unmount-popup/po_usbotg_unmount/lv.po new file mode 100755 index 0000000..9b5efb1 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/lv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Atmiņa pilna" + +msgid "IDS_COM_SK_OK" +msgstr "Labi" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Tukšs akumulators" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Sadaļa %s ir aizvērta" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/mk.po b/usbotg-unmount-popup/po_usbotg_unmount/mk.po new file mode 100755 index 0000000..24872b6 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/mk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист.инфо." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Нема доволно меморија" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Има уште малку меморија" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s се затвори" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/nb.po b/usbotg-unmount-popup/po_usbotg_unmount/nb.po new file mode 100755 index 0000000..7496536 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/nb.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ikke nok minne" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Lite minne" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s lukket" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/nl_NL.po b/usbotg-unmount-popup/po_usbotg_unmount/nl_NL.po new file mode 100644 index 0000000..df23352 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/nl_NL.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Onvoldoende geheugen" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s afgesloten" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/pl.po b/usbotg-unmount-popup/po_usbotg_unmount/pl.po new file mode 100755 index 0000000..4ddbfbb --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/pl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info syst." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Brak pamięci" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Mało pamięci" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "Zamknięto %s" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/pt_BR.po b/usbotg-unmount-popup/po_usbotg_unmount/pt_BR.po new file mode 100755 index 0000000..27546d8 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/pt_BR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistema" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memória insuficiente" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Baixa memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/pt_PT.po b/usbotg-unmount-popup/po_usbotg_unmount/pt_PT.po new file mode 100644 index 0000000..f2390c3 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/pt_PT.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Cartão SD cheio" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Pouca memória" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s fechado" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ro.po b/usbotg-unmount-popup/po_usbotg_unmount/ro.po new file mode 100755 index 0000000..6167017 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ro.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info. sis." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Memorie plină" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorie insuficientă" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s a fost închis" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/ru_RU.po b/usbotg-unmount-popup/po_usbotg_unmount/ru_RU.po new file mode 100644 index 0000000..fd06e2b --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/ru_RU.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Системная информация" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостаточно памяти" + +msgid "IDS_COM_SK_OK" +msgstr "Да" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Аккумулятор разряжен" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрыт" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/sk.po b/usbotg-unmount-popup/po_usbotg_unmount/sk.po new file mode 100755 index 0000000..404d0ae --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/sk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Syst. inf." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Nedostatok pamäte" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvorené" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/sl.po b/usbotg-unmount-popup/po_usbotg_unmount/sl.po new file mode 100755 index 0000000..78cc366 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/sl.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sist. info" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Ni dovolj pomnilnika" + +msgid "IDS_COM_SK_OK" +msgstr "V redu" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Zmanjkuje pomnilnika" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zaprto" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/sr.po b/usbotg-unmount-popup/po_usbotg_unmount/sr.po new file mode 100755 index 0000000..7d1d1f0 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/sr.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Info.sist." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Nedovoljna memorija" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Memorija pri kraju" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s zatvoreno" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/sv.po b/usbotg-unmount-popup/po_usbotg_unmount/sv.po new file mode 100755 index 0000000..dcb321a --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/sv.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Systeminfo" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Minnet fullt" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Ont om minnesplats" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s har stängts" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/tr_TR.po b/usbotg-unmount-popup/po_usbotg_unmount/tr_TR.po new file mode 100644 index 0000000..bac7956 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/tr_TR.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Sistem bilgi." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Yeterli hafıza yok" + +msgid "IDS_COM_SK_OK" +msgstr "Tamam" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Düşük hafıza" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s kapatıldı" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/uk.po b/usbotg-unmount-popup/po_usbotg_unmount/uk.po new file mode 100755 index 0000000..63f22f9 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/uk.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Сист. інф." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Недостатньо пам'яті" + +msgid "IDS_COM_SK_OK" +msgstr "ОК" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Батарея розряджена" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s закрито" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/uz.po b/usbotg-unmount-popup/po_usbotg_unmount/uz.po new file mode 100755 index 0000000..f774e87 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/uz.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "Tizim ma’l." + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "Xotira yetarli emas" + +msgid "IDS_COM_SK_OK" +msgstr "OK" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "Bo‘sh xotira kam" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s yopildi" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/zh_CN.po b/usbotg-unmount-popup/po_usbotg_unmount/zh_CN.po new file mode 100644 index 0000000..666bc7e --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/zh_CN.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "没有足够内存" + +msgid "IDS_COM_SK_OK" +msgstr "确定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/zh_HK.po b/usbotg-unmount-popup/po_usbotg_unmount/zh_HK.po new file mode 100644 index 0000000..b3cf091 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/zh_HK.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統資料" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/zh_SG.po b/usbotg-unmount-popup/po_usbotg_unmount/zh_SG.po new file mode 100755 index 0000000..863ea88 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/zh_SG.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系统信息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "内存不足" + +msgid "IDS_COM_SK_OK" +msgstr "确认" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "内存不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已关闭" + diff --git a/usbotg-unmount-popup/po_usbotg_unmount/zh_TW.po b/usbotg-unmount-popup/po_usbotg_unmount/zh_TW.po new file mode 100644 index 0000000..cf73ac9 --- /dev/null +++ b/usbotg-unmount-popup/po_usbotg_unmount/zh_TW.po @@ -0,0 +1,15 @@ +msgid "IDS_COM_BODY_SYSTEM_INFO_ABB" +msgstr "系統訊息" + +msgid "IDS_COM_POP_NOT_ENOUGH_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_COM_SK_OK" +msgstr "確定" + +msgid "IDS_IDLE_BODY_LOW_MEMORY" +msgstr "記憶體不足" + +msgid "IDS_IDLE_POP_PS_CLOSED" +msgstr "%s 已關閉" + diff --git a/usbotg-unmount-popup/src/usbotg-unmount.c b/usbotg-unmount-popup/src/usbotg-unmount.c new file mode 100755 index 0000000..dcb0aa9 --- /dev/null +++ b/usbotg-unmount-popup/src/usbotg-unmount.c @@ -0,0 +1,352 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#include +#include +#include +#include +#include +#include +#include +#include "usbotg-unmount.h" +#include +#include +#include +#include +#include + +#define APPLICATION_BG 1 +#define INDICATOR_HEIGHT (38) /* the case of 480*800 */ +#define NEW_INDI + +#define ACCT_PROF +#ifdef ACCT_PROF +#include +#endif /* ACCT_PROF */ + +#include + +static const char *dev_name = NULL; + +int myterm(bundle *b, void *data) +{ + return 0; +} + +int mytimeout(bundle *b, void *data) +{ + return 0; +} + +syspopup_handler handler = { + .def_term_fn = myterm, + .def_timeout_fn = mytimeout +}; + +struct text_part { + char *part; + char *msgid; +}; + +static struct text_part main_txt[] = { + {"txt_title", N_("USB otg popup"),}, + {"txt_mesg", N_(""),}, +}; + + +/* App Life cycle funtions */ +static void win_del(void *data, Evas_Object *obj, void *event) +{ + elm_exit(); +} + +/* Quit */ +static void main_quit_cb(void *data, Evas_Object *obj, const char *emission, + const char *source) +{ + elm_exit(); +} + +/* Update text font */ +static void update_ts(Evas_Object *eo, struct text_part *tp, int size) +{ + int i; + + if (eo == NULL || tp == NULL || size < 0) + return; + + for (i = 0; i < size; i++) { + if (tp[i].part && tp[i].msgid) + edje_object_part_text_set(eo, tp[i].part, + _(tp[i].msgid)); + } +} + +/* Language changed noti handler */ +static int lang_changed(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main == NULL) + return 0; + + update_ts(elm_layout_edje_get(ad->layout_main), main_txt, + sizeof(main_txt) / sizeof(main_txt[0])); + return 0; +} + +/* Create main window */ +static Evas_Object *create_win(const char *name) +{ + Evas_Object *eo; + int w, h; + + eo = elm_win_add(NULL, name, ELM_WIN_DIALOG_BASIC); + if (eo) { + elm_win_title_set(eo, name); + elm_win_borderless_set(eo, EINA_TRUE); + evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); + elm_win_alpha_set(eo, EINA_TRUE); + ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, + &h); + evas_object_resize(eo, w, h); + } + + return eo; +} + +/* Read from EDJ file */ +static Evas_Object *load_edj(Evas_Object * parent, const char *file, + const char *group) +{ + Evas_Object *eo; + int r; + + eo = elm_layout_add(parent); + if (eo) { + r = elm_layout_file_set(eo, file, group); + if (!r) { + evas_object_del(eo); + return NULL; + } + + evas_object_size_hint_weight_set(eo, EVAS_HINT_EXPAND, + EVAS_HINT_EXPAND); + } + + return eo; +} + +/* Terminate noti handler */ +static int app_terminate(void *data) +{ + struct appdata *ad = data; + + if (ad->layout_main) + evas_object_del(ad->layout_main); + + if (ad->win_main) + evas_object_del(ad->win_main); + + return 0; +} + +/* Pause/background */ +static int app_pause(void *data) +{ + return 0; +} + +/* Resume */ +static int app_resume(void *data) +{ + return 0; +} + + +/* Reset */ +static int app_reset(bundle *b, void *data) +{ + struct appdata *ad = data; + int removenoti = -1; + char *opt = NULL; + + dev_name = bundle_get_val(b, "device_name"); + if (dev_name == NULL) + return 0; + + if (syspopup_has_popup(b)) { + syspopup_reset(b); + } else { + syspopup_create(b, &handler, ad->win_main, ad); + evas_object_show(ad->win_main); + + /* Start Main UI */ + usbotg_unmount_start((void *)ad); + } + + return 0; +} + +/* Customized print */ +void system_print(const char *format, ...) +{ + /* Un-comment return to disable logs */ + //return; + + va_list args; + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); +} + +/* Cleanup objects to avoid mem-leak */ +void usbotg_unmount_cleanup(struct appdata *ad) +{ + if (ad == NULL) + return; + + if (ad->popup) + evas_object_del(ad->popup); + if (ad->layout_main) + evas_object_del(ad->layout_main); +} + +/* Background clicked noti */ +void bg_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : In BG Noti \n"); + fflush(stdout); + exit(0); +} + +/* Yes clicked noti */ +// TO DO +// following is private vconf key for system-server +#define VCONFKEY_REMOVED_USB_STORAGE "memory/private/sysman/removed_storage_uevent" + +void ok_clicked_cb(void *data, Evas * e, Evas_Object * obj, void *event_info) +{ + system_print("\n system-popup : Yes Noti \n"); + + struct appdata *ad = data; + vconf_set_str(VCONFKEY_REMOVED_USB_STORAGE, ad->device_name); + free(ad->device_name); + + fflush(stdout); + exit(0); +} + +/* Create indicator bar */ +int usbotg_unmount_create_indicator(struct appdata *ad) +{ + elm_win_indicator_mode_set(ad->win_main, ELM_WIN_INDICATOR_HIDE); + return 0; +} + +/* Basic popup widget */ +int usbotg_unmount_create_and_show_basic_popup(struct appdata *ad) +{ + Evas_Object *btn1; + Evas_Object *btn2; + char buf[PATH_MAX] = {0, }; + + /* Initialization */ + int ret_val = 0; + snprintf(buf, PATH_MAX, "Unmount %s?", dev_name); + ad->device_name = malloc(strlen(dev_name)+1); + strncpy(ad->device_name, dev_name, strlen(dev_name)); + + /* Add notify */ + /* No need to give main window, it will create internally */ + ad->popup = elm_popup_add(ad->win_main); + evas_object_size_hint_weight_set(ad->popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_object_style_set(ad->popup, "transparent"); + elm_object_text_set(ad->popup, buf); + elm_object_part_text_set(ad->popup, "title,text", _("IDS_COM_BODY_SYSTEM_INFO_ABB")); + + btn1 = elm_button_add(ad->popup); + elm_object_text_set(btn1, "OK"); + elm_object_part_content_set(ad->popup, "button1", btn1); + elm_object_style_set(btn1, "popup_button/default"); + evas_object_smart_callback_add(btn1, "clicked", ok_clicked_cb, ad); + + btn2 = elm_button_add(ad->popup); + elm_object_text_set(btn2, "Cancel"); + elm_object_part_content_set(ad->popup, "button2", btn2); + elm_object_style_set(btn2, "popup_button/default"); + evas_object_smart_callback_add(btn2, "clicked", bg_clicked_cb, ad); + + Ecore_X_Window xwin; + xwin = elm_win_xwindow_get(ad->popup); + ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION); + evas_object_show(ad->popup); + + return 0; +} + +int usbotg_unmount_start(void *data) +{ + struct appdata *ad = data; + int ret_val = 0; + + /* Create and show popup */ + ret_val = usbotg_unmount_create_and_show_basic_popup(ad); + if (ret_val != 0) + return -1; + + return 0; +} + +/* App init */ +int app_create(void *data) +{ + Evas_Object *win; + struct appdata *ad = data; + + /* create window */ + win = create_win(PACKAGE); + if (win == NULL) + return -1; + + ad->win_main = win; + + return 0; + +} + +int main(int argc, char *argv[]) +{ + struct appdata ad; + + /* App life cycle management */ + struct appcore_ops ops = { + .create = app_create, + .terminate = app_terminate, + .pause = app_pause, + .resume = app_resume, + .reset = app_reset, + }; + + memset(&ad, 0x0, sizeof(struct appdata)); + ops.data = &ad; + + sysconf_set_mempolicy(OOM_IGNORE); + + return appcore_efl_main(PACKAGE, &argc, &argv, &ops); +} diff --git a/usbotg-unmount-popup/src/usbotg-unmount.h b/usbotg-unmount-popup/src/usbotg-unmount.h new file mode 100644 index 0000000..463d2cb --- /dev/null +++ b/usbotg-unmount-popup/src/usbotg-unmount.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2012 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +#ifndef __DEF_usbotg_unmount_H_ +#define __DEF_usbotg_unmount_H_ + +#include +#include +#include +#include + +#ifndef PREFIX +#define PREFIX "/usr" +#endif /* PREFIX */ + +#define TEMP_DIR "/tmp" +#define PACKAGE "usbotg-unmount-popup" +#define APPNAME "usbotg-unmount-popup" +#define ICON_DIR PREFIX"/apps/org.tizen.usbotg-unmount-popup/res/images" +#define BG_IMAGE TEMP_DIR"/01_popup_bg.jpg" +#define MAIN_W (480) +#define MAIN_H (800) +#define EDJ_PATH PREFIX"/apps/org.tizen.usbotg-unmount-popup/res/edje/usbotg-unmount" +#define EDJ_NAME EDJ_PATH"/usbotg-unmount.edj" +#define EDJ_POPUP_NAME EDJ_PATH"/usbotg_unmount_popup.edj" +#define GRP_MAIN "main" +#define GRP_POPUP "popup" +#define MAX_PROCESS_NAME 100 +#define PROCESS_NAME_FILE "/tmp/processname.txt" +#define BEAT + +struct appdata { + Evas *evas; + Evas_Object *win_main; + Evas_Object *popup; + + Evas_Object *layout_main; /* layout widget based on EDJ */ + + Evas_Object *root_w; + Evas_Object *root_h; + Evas_Object *bg; + Evas_Object *indicator; + + double w_ratio; + double h_ratio; + + const char *device_name; + +}; + +#endif /* __DEF_usbotg_unmount_H__ */