tizen 2.4 release accepted/tizen_2.4_mobile tizen_2.4 accepted/tizen/2.4/mobile/20151029.031227 submit/tizen_2.4/20151028.064901 tizen_2.4_mobile_release
authorjk7744.park <jk7744.park@samsung.com>
Mon, 26 Oct 2015 06:50:33 +0000 (15:50 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Mon, 26 Oct 2015 06:50:33 +0000 (15:50 +0900)
67 files changed:
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
INSTALL [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
NEWS [new file with mode: 0644]
README [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
configure.ac [new file with mode: 0644]
e17-mod-tizen-extndialog.manifest [new file with mode: 0755]
packaging/e17-mod-tizen-extndialog.spec [new file with mode: 0755]
po/CMakeLists.txt [new file with mode: 0755]
po/ar.po [new file with mode: 0755]
po/az.po [new file with mode: 0755]
po/bg.po [new file with mode: 0755]
po/ca.po [new file with mode: 0755]
po/cs.po [new file with mode: 0755]
po/da.po [new file with mode: 0755]
po/de_DE.po [new file with mode: 0755]
po/el_GR.po [new file with mode: 0755]
po/en.po [new file with mode: 0755]
po/en_PH.po [new file with mode: 0755]
po/en_US.po [new file with mode: 0755]
po/es_ES.po [new file with mode: 0755]
po/es_MX.po [new file with mode: 0755]
po/et.po [new file with mode: 0755]
po/eu.po [new file with mode: 0755]
po/fi.po [new file with mode: 0755]
po/fr_CA.po [new file with mode: 0755]
po/fr_FR.po [new file with mode: 0755]
po/ga.po [new file with mode: 0755]
po/gl.po [new file with mode: 0755]
po/hi.po [new file with mode: 0755]
po/hr.po [new file with mode: 0755]
po/hu.po [new file with mode: 0755]
po/hy.po [new file with mode: 0755]
po/is.po [new file with mode: 0755]
po/it_IT.po [new file with mode: 0755]
po/ja_JP.po [new file with mode: 0755]
po/ka.po [new file with mode: 0755]
po/kk.po [new file with mode: 0755]
po/ko_KR.po [new file with mode: 0755]
po/lt.po [new file with mode: 0755]
po/lv.po [new file with mode: 0755]
po/mk.po [new file with mode: 0755]
po/nb.po [new file with mode: 0755]
po/nl_NL.po [new file with mode: 0755]
po/pl.po [new file with mode: 0755]
po/pt_BR.po [new file with mode: 0755]
po/pt_PT.po [new file with mode: 0755]
po/ro.po [new file with mode: 0755]
po/ru_RU.po [new file with mode: 0755]
po/sk.po [new file with mode: 0755]
po/sl.po [new file with mode: 0755]
po/sr.po [new file with mode: 0755]
po/sv.po [new file with mode: 0755]
po/tr_TR.po [new file with mode: 0755]
po/uk.po [new file with mode: 0755]
po/uz.po [new file with mode: 0755]
po/zh_CN.po [new file with mode: 0755]
po/zh_HK.po [new file with mode: 0755]
po/zh_TW.po [new file with mode: 0755]
src/Makefile.am [new file with mode: 0644]
src/extndialog-default.c [new file with mode: 0644]
src/extndialog-hdmi.c [new file with mode: 0644]
src/extndialog.c [new file with mode: 0644]
src/extndialog.h [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..70a219c
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,31 @@
+The Rasterman (Carsten Haitzler) <raster@rasterman.com>
+Ibukun Olumuyiwa <ibukun@computer.org>
+Sebastian Dransfeld <sd@tango.flipp.net>
+HandyAndE (Andrew Williams) <andy@handyande.co.uk>
+CodeWarrior (Hisham Mardam Bey) <hisham@hisham.cc>
+dj2 (Dan Sinclair) <dj2@everburning.com>
+Tilman Sauerbeck <tilman@code-monkey.de>
+Aleksej Struk <astruk@gmail.com>
+Brian Mattern <rephorm@rephorm.com>
+devilhorns (Christopher Michael) <devilhorns@comcast.net>
+/dev/urandom (Viktor Kojouharov) <vkojouharov@gmail.com>
+ilLogict (Chidambar Zinnoury) <illogict@online.fr>
+Stafford Horne <shorne@softhome.net>
+Cedric Bail <cedric.bail@free.fr>
+onefang (David Seikel) <onefang@gmail.com>
+okra (Stephen Houston) <smhouston88@gmail.com>
+Byron Hillis <metrics@score5.org>
+Ravenlock (Eric Schuele) <e.schuele@computer.org>
+ManoWarrior (Luchezar Petkov) <luchezar.petkov@gmail.com>
+morlenxus (Brian Miculcy) <morlenxus@gmx.net>
+Toma- (Tom Haste) <tomhaste@gmail.com>
+k-s (Gustavo Sverzut Barbieri) <barbieri@profusion.mobi>
+Peter van de Werken <pwerken-e@a-eskwadraat.nl>
+Florian Hackenberger <florian@hackenberger.at>
+Hannes Janetzek <hannes.janetzek@gmail.com>
+Mike Blumenkrantz (discomfitor/zmike) <mike@zentific.com>
+Leif Middelschulte <leif.middelschulte@gmail.com>
+yoz (Michael Bouchaud) <michael.bouchaud@gmail.com>
+Gwanglim Lee <gl77.lee@samsung.com>
+Doyoun Kang <doyoun.kang@samsung.com>
+Sangjin Lee <lsj119@samsung.com>
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..4556b54
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,25 @@
+Copyright notice for Enlightenment:
+
+Copyright (C) 2000-2012 Carsten Haitzler and various contributors (see AUTHORS)
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright 
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..8b82ade
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,291 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
+2006, 2007, 2008 Free Software Foundation, Inc.
+
+   This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+   Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package.  The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+   It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring.  Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+   The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'.  You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.
+
+     Running `configure' might take a while.  While running, it prints
+     some messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Optionally, type `make check' to run any self-tests that come with
+     the package.
+
+  4. Type `make install' to install the programs and any data files and
+     documentation.
+
+  5. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  To also remove the
+     files that `configure' created (so you can compile the package for
+     a different kind of computer), type `make distclean'.  There is
+     also a `make maintainer-clean' target, but that is intended mainly
+     for the package's developers.  If you use it, you may have to get
+     all sorts of other programs in order to regenerate files that came
+     with the distribution.
+
+  6. Often, you can also type `make uninstall' to remove the installed
+     files again.
+
+Compilers and Options
+=====================
+
+   Some systems require unusual options for compilation or linking that
+the `configure' script does not know about.  Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+   You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here
+is an example:
+
+     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+   *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+   You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you can use GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+   With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory.  After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+   On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor.  Like
+this:
+
+     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CPP="gcc -E" CXXCPP="g++ -E"
+
+   This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
+
+Installation Names
+==================
+
+   By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc.  You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+   In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files.  Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+   Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Particular systems
+==================
+
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+     ./configure CC="cc -Ae"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
+a workaround.  If GNU CC is not installed, it is therefore recommended
+to try
+
+     ./configure CC="cc"
+
+and if that doesn't work, try
+
+     ./configure CC="cc -nodtk"
+
+Specifying the System Type
+==========================
+
+   There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on.  Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+     CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+     OS KERNEL-OS
+
+   See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+   If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+   If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+   If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+   Variables not defined in a site shell script can be set in the
+environment passed to `configure'.  However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost.  In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'.  For example:
+
+     ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf bug.  Until the bug is fixed you can use this workaround:
+
+     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+   `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+     Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+     Print a summary of the options unique to this package's
+     `configure', and exit.  The `short' variant lists options used
+     only in the top level, while the `recursive' variant lists options
+     also present in any nested packages.
+
+`--version'
+`-V'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`--cache-file=FILE'
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
+
+`--config-cache'
+`-C'
+     Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.  To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown).
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`--prefix=DIR'
+     Use DIR as the installation prefix.  *Note Installation Names::
+     for more details, including other options available for fine-tuning
+     the installation locations.
+
+`--no-create'
+`-n'
+     Run the configure checks, but stop before creating any output
+     files.
+
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..ea62ff3
--- /dev/null
@@ -0,0 +1,6 @@
+SUBDIRS = src
+
+MAINTAINERCLEANFILES = \
+                      Makefile.in
+
+EXTRA_DIST = README AUTHORS COPYING autogen.sh
diff --git a/NEWS b/NEWS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..311a035
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+rm -rf autom4te.cache
+rm -f aclocal.m4 ltmain.sh
+
+echo "Running autoreconf..." ; autoreconf -v --install || exit 1
+echo "Running configure..." ; ./configure --enable-maintainer-mode
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..7283b84
--- /dev/null
@@ -0,0 +1,37 @@
+# Process this file with autoconf to produce a configure script.
+dnl Process this file with autoconf to produce a configure script.
+
+# get rid of that stupid cache mechanism
+rm -f config.cache
+
+AC_INIT([extndialog], [0.1.0], [enlightenment-devel@lists.sourceforge.net])
+AC_PREREQ([2.52])
+AC_CONFIG_SRCDIR([configure.ac])
+
+AM_CONFIG_HEADER([config.h])
+
+AM_INIT_AUTOMAKE([1.8])
+
+GETTEXT_PACKAGE="extndialog"
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
+
+AC_USE_SYSTEM_EXTENSIONS
+AM_PROG_CC_STDC
+AM_PROG_CC_C_O
+
+requirements="\
+   elementary \
+   ecore-x \
+   utilX \
+   vconf \
+   "
+
+PKG_CHECK_MODULES(EXTNDIALOG, [${requirements}])
+
+AC_CONFIG_FILES([
+Makefile
+src/Makefile
+])
+
+AC_OUTPUT
diff --git a/e17-mod-tizen-extndialog.manifest b/e17-mod-tizen-extndialog.manifest
new file mode 100755 (executable)
index 0000000..b76f646
--- /dev/null
@@ -0,0 +1,8 @@
+<manifest>
+   <request>
+      <domain name="_" />
+   </request>
+   <assign>
+      <filesystem path="/usr/bin/extndialog" label="e17" exec_label="e17" />
+   </assign>
+</manifest>
diff --git a/packaging/e17-mod-tizen-extndialog.spec b/packaging/e17-mod-tizen-extndialog.spec
new file mode 100755 (executable)
index 0000000..0cfe7d5
--- /dev/null
@@ -0,0 +1,78 @@
+Name:       e17-mod-tizen-extndialog
+Summary:    The E17 extndialog for Tizen
+Version:    0.1.3
+Release:    1
+Group:      System/GUI/Other
+License:    BSD 2-clause
+Source0:    %{name}-%{version}.tar.gz
+BuildRequires:  pkgconfig(enlightenment)
+BuildRequires:  pkgconfig(utilX)
+BuildRequires:  pkgconfig(elementary)
+BuildRequires:  pkgconfig(vconf)
+BuildRequires:  cmake
+BuildRequires:  gettext-tools
+
+Requires: libX11
+Requires: vconf
+
+%description
+The E17 Extra Modules  The E17 extra modules consists of modules made by Tizen.
+
+%prep
+%setup -q
+
+
+%build
+cd po
+rm -rf CMakeFiles
+rm -rf CMakeCache.txt
+cmake .
+make %{?jobs:-j%jobs}
+make install
+cd ..
+
+export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections"
+export CFLAGS+=" -Wall -g -fPIC -rdynamic -Werror-implicit-function-declaration ${GC_SECTIONS_FLAGS} -D_F_REMAP_MOUSE_BUTTON_TO_HWKEY_ -D_F_SUPPORT_XTEST_TOUCH_EVENT_"
+export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
+
+export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
+
+%if "%{?tizen_profile_name}" == "mobile"
+export CFLAGS+=" -D_ENV_MOBILE_"
+%else
+%if "%{?tizen_profile_name}" == "wearable"
+export CFLAGS+=" -D_ENV_WEARABLE_"
+%endif
+%endif
+
+%ifarch %{arm}
+export CFLAGS+=" -D_ENV_ARM"
+%endif
+
+%autogen
+%configure --prefix=/usr
+make %{?jobs:-j%jobs}
+cd -
+
+%install
+rm -rf %{buildroot}
+
+# for license notification
+mkdir -p %{buildroot}/usr/share/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name}
+
+# for locale
+cp %{_builddir}/%{buildsubdir}/po/locale %{buildroot}/usr/share -a
+
+make install DESTDIR=%{buildroot}
+
+%files
+%manifest e17-mod-tizen-extndialog.manifest
+%defattr(-,root,root,-)
+
+
+%{_bindir}/extndialog
+
+/usr/share/license/%{name}
+/usr/share/locale/*
+
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100755 (executable)
index 0000000..45439a4
--- /dev/null
@@ -0,0 +1,75 @@
+# for i18n
+
+SET(POFILES
+       ar.po
+       az.po
+       bg.po
+       ca.po
+       cs.po
+       da.po
+       de_DE.po
+       el_GR.po
+       en_PH.po
+       en.po
+       en_US.po
+       es_ES.po
+       es_MX.po
+       et.po
+       eu.po
+       fi.po
+       fr_CA.po
+       fr_FR.po
+       ga.po
+       gl.po
+       hi.po
+       hr.po
+       hu.po
+       hy.po
+       is.po
+       it_IT.po
+       ja_JP.po
+       ka.po
+       kk.po
+       ko_KR.po
+       lt.po
+       lv.po
+       mk.po
+       nb.po
+       nl_NL.po
+       pl.po
+       pt_BR.po
+       pt_PT.po
+       ro.po
+       ru_RU.po
+       sk.po
+       sl.po
+       sr.po
+       sv.po
+       tr_TR.po
+       uk.po
+       uz.po
+       zh_CN.po
+       zh_HK.po
+       zh_TW.po
+)
+
+SET(MSGFMT "/usr/bin/msgfmt")
+
+FOREACH(pofile ${POFILES})
+       SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile})
+       MESSAGE(STATUS "  ${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 ${CMAKE_CURRENT_BINARY_DIR}/locale/${lang}/LC_MESSAGES RENAME extndialog.mo)
+       SET(moFiles ${moFiles} ${moFile})
+ENDFOREACH(pofile)
+
+ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles})
diff --git a/po/ar.po b/po/ar.po
new file mode 100755 (executable)
index 0000000..775b63a
--- /dev/null
+++ b/po/ar.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "موافق"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "جهازك متصل عبر HDMI. توقف اتصال Screen Mirroring."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "جهازك متصل عبر HDMI. تم إنهاء الاتصال عبر SideSync."
+
diff --git a/po/az.po b/po/az.po
new file mode 100755 (executable)
index 0000000..9dd8461
--- /dev/null
+++ b/po/az.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Cihazınız HDMI vasitəsilə qoşulmuşdur. Screen Mirroring bağlantısı sona çatdı."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Cihazınız HDMI vasitəsilə qoşulmuşdur. SideSync bağlantısı sona çatdı."
+
diff --git a/po/bg.po b/po/bg.po
new file mode 100755 (executable)
index 0000000..393d788
--- /dev/null
+++ b/po/bg.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Устройството ви е свързано през HDMI. Връзката към Screen Mirroring е прекратена."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Устройството ви е свързано през HDMI. Връзката към Странично синхронизиране е прекратена."
+
diff --git a/po/ca.po b/po/ca.po
new file mode 100755 (executable)
index 0000000..ac9738a
--- /dev/null
+++ b/po/ca.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Acceptar"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "El dispositiu està connectat mitjançant HDMI. Ha finalitzat la connexió de Screen Mirroring."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "El dispositiu està connectat mitjançant HDMI. Ha finalitzat la connexió de SideSync."
+
diff --git a/po/cs.po b/po/cs.po
new file mode 100755 (executable)
index 0000000..42df363
--- /dev/null
+++ b/po/cs.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Zařízení je připojeno prostřednictvím HDMI. Připojení prostřednictvím Screen Mirroring bylo ukončeno."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Zařízení je připojeno prostřednictvím HDMI. Připojení prostřednictvím SideSync bylo ukončeno."
+
diff --git a/po/da.po b/po/da.po
new file mode 100755 (executable)
index 0000000..515c9c7
--- /dev/null
+++ b/po/da.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Din enhed er tilsluttet via HDMI. Screen Mirroring-forbindelsen er afsluttet."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Din enhed er tilsluttet via HDMI. Forbindelsen via Sidesynkronisering er afsluttet."
+
diff --git a/po/de_DE.po b/po/de_DE.po
new file mode 100755 (executable)
index 0000000..8fd9db9
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Ihr Gerät ist über HDMI angeschlossen. Die Screen Mirroring-Verbindung ist beendet."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Ihr Gerät ist über HDMI angeschlossen. Die SideSync-Verbindung ist beendet."
+
diff --git a/po/el_GR.po b/po/el_GR.po
new file mode 100755 (executable)
index 0000000..d074d5c
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Η συσκευή σας συνδέθηκε μέσω HDMI. Η σύνδεση του Screen Mirroring τερματίστηκε."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Η συσκευή σας συνδέθηκε μέσω HDMI. Η σύνδεση του SideSync τερματίστηκε."
+
diff --git a/po/en.po b/po/en.po
new file mode 100755 (executable)
index 0000000..04bd673
--- /dev/null
+++ b/po/en.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The Screen Mirroring connection has ended."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The SideSync connection has ended."
+
diff --git a/po/en_PH.po b/po/en_PH.po
new file mode 100755 (executable)
index 0000000..04bd673
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The Screen Mirroring connection has ended."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The SideSync connection has ended."
+
diff --git a/po/en_US.po b/po/en_US.po
new file mode 100755 (executable)
index 0000000..04bd673
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The Screen Mirroring connection has ended."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Your device is connected via HDMI. The SideSync connection has ended."
+
diff --git a/po/es_ES.po b/po/es_ES.po
new file mode 100755 (executable)
index 0000000..04826e1
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Aceptar"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "El dispositivo está conectado a través de HDMI. La conexión de Screen Mirroring ha finalizado."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "El dispositivo está conectado a través de HDMI. La conexión de SideSync ha finalizado."
+
diff --git a/po/es_MX.po b/po/es_MX.po
new file mode 100755 (executable)
index 0000000..4fc9354
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Aceptar"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "El dispositivo está conectado a través de HDMI. La conexión de Screen Mirroring finalizó."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "El dispositivo está conectado a través de HDMI. La conexión de Sincronización paralela finalizó."
+
diff --git a/po/et.po b/po/et.po
new file mode 100755 (executable)
index 0000000..5adcc9a
--- /dev/null
+++ b/po/et.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Seade on ühendatud HDMI kaudu. Rakenduse Screen Mirroring ühendus on katkenud."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Seade on ühendatud HDMI kaudu. SideSync’i ühendus on katkenud."
+
diff --git a/po/eu.po b/po/eu.po
new file mode 100755 (executable)
index 0000000..f23a30a
--- /dev/null
+++ b/po/eu.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Ados"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Zure gailua HDMI bidez konektatuta dago. Screen Mirroring konexioa amaitu da."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Zure gailua HDMI bidez konektatuta dago. SideSync konexioa amaitu da."
+
diff --git a/po/fi.po b/po/fi.po
new file mode 100755 (executable)
index 0000000..15c0933
--- /dev/null
+++ b/po/fi.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Laite on yhdistetty HDMI-yhteyden kautta. Screen Mirroring -yhteys on katkaistu."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Laite on yhdistetty HDMI-yhteyden kautta. SideSync-yhteys on katkaistu."
+
diff --git a/po/fr_CA.po b/po/fr_CA.po
new file mode 100755 (executable)
index 0000000..b5d264c
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Votre appareil est connecté par HDMI. La connexion Réplication de l'écran a été interrompue."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Votre appareil est connecté via HDMI. La connexion SideSync a été interrompue."
+
diff --git a/po/fr_FR.po b/po/fr_FR.po
new file mode 100755 (executable)
index 0000000..78329c1
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Votre appareil est connecté par HDMI. La connexion Screen Mirroring a été interrompue."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Votre appareil est connecté via HDMI. La connexion SideSync a été interrompue."
+
diff --git a/po/ga.po b/po/ga.po
new file mode 100755 (executable)
index 0000000..7468231
--- /dev/null
+++ b/po/ga.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Tá do ghléas ceangailte trí HDMI. Scoireadh an nasc Screen Mirroring."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Tá do ghléas ceangailte trí HDMI. Scoireadh an nasc trí Thaobhshioncronú."
+
diff --git a/po/gl.po b/po/gl.po
new file mode 100755 (executable)
index 0000000..d8971ea
--- /dev/null
+++ b/po/gl.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Aceptar"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "O teu dispositivo está conectado a través de HDMI. Finalizouse a conexión de Screen Mirroring."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "O teu dispositivo está conectado a través de HDMI. Finalizouse a conexión de Sincronización lateral."
+
diff --git a/po/hi.po b/po/hi.po
new file mode 100755 (executable)
index 0000000..a5cfb9b
--- /dev/null
+++ b/po/hi.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "ओके"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "आपका डिवाइस HDMI के माध्यम से कनेक्ट किया गया है। Screen Mirroring कनेक्शन समाप्त हो गया है।"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "आपका डिवाइस HDMI के माध्यम से कनेक्ट किया गया है। साइडसिंक कनेक्शन समाप्त हो गया है।"
+
diff --git a/po/hr.po b/po/hr.po
new file mode 100755 (executable)
index 0000000..6b050fd
--- /dev/null
+++ b/po/hr.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Uređaj je spojen preko HDMI-a. Prekinuta je Screen Mirroring veza."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Uređaj je spojen preko HDMI-a. Prekinuta je veza Usporedne sinkronizacije."
+
diff --git a/po/hu.po b/po/hu.po
new file mode 100755 (executable)
index 0000000..ec85660
--- /dev/null
+++ b/po/hu.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Az eszköz HDMI-n keresztül kapcsolódik. A Screen Mirroring-kapcsolat véget ért."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Az eszköz is HDMI-n keresztül kapcsolódik. A SideSync-kapcsolat véget ért."
+
diff --git a/po/hy.po b/po/hy.po
new file mode 100755 (executable)
index 0000000..72a772f
--- /dev/null
+++ b/po/hy.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Ընդունել"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Ձեր սարքը միացված է HDMI-ի միջոցով: Screen Mirroring-ի միացումն ավարտվել է:"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Ձեր սարքը միացված է HDMI-ի միջոցով: SideSync միացումն ավարտվել է:"
+
diff --git a/po/is.po b/po/is.po
new file mode 100755 (executable)
index 0000000..fd08e5a
--- /dev/null
+++ b/po/is.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Í lagi"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Tækið þitt er tengt í gegnum HDMI. Screen Mirroring-tengingunni var slitið."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Tækið þitt er tengt í gegnum HDMI. Tölvusamnýtingartengingunni var slitið."
+
diff --git a/po/it_IT.po b/po/it_IT.po
new file mode 100755 (executable)
index 0000000..34f5895
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Il dispositivo in uso è connesso con HDMI. La connessione Screen Mirroring è stata interrotta."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Il dispositivo in uso è connesso con HDMI. La connessione SideSync è stata interrotta."
+
diff --git a/po/ja_JP.po b/po/ja_JP.po
new file mode 100755 (executable)
index 0000000..f4e3ea8
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "端末がHDMIで接続されたため、Screen Mirroring接続が終了しました。"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "端末がHDMIで接続されたため、SideSync接続が終了しました。"
+
diff --git a/po/ka.po b/po/ka.po
new file mode 100755 (executable)
index 0000000..d214336
--- /dev/null
+++ b/po/ka.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "კი"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "თქვენი აპარატი დაკავშირებულია HDMI-ით. Screen Mirroring-ით დაკავშირება დასრულდა."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "თქვენი აპარატი დაკავშირებულია HDMI-ით. SideSync კავშირი დასრულდა."
+
diff --git a/po/kk.po b/po/kk.po
new file mode 100755 (executable)
index 0000000..28470e5
--- /dev/null
+++ b/po/kk.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Құрылғыңыз HDMI арқылы қосылған. Screen Mirroring қосылымы аяқталды."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Құрылғыңыз HDMI арқылы қосылған. SideSync қосылымы аяқталды."
+
diff --git a/po/ko_KR.po b/po/ko_KR.po
new file mode 100755 (executable)
index 0000000..1044870
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "확인"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "HDMI가 연결되어 Screen Mirroring 연결이 종료되었습니다"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "HDMI가 연결되어 SideSync 연결이 종료되었습니다"
+
diff --git a/po/lt.po b/po/lt.po
new file mode 100755 (executable)
index 0000000..1f872d5
--- /dev/null
+++ b/po/lt.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Gerai"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Jūsų įrenginys prijungtas per HDMI. Ekrano dubliavimo ryšys nutrauktas."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Jūsų įrenginys prijungtas per HDMI. „SideSync“ ryšys nutrauktas."
+
diff --git a/po/lv.po b/po/lv.po
new file mode 100755 (executable)
index 0000000..fcebc7a
--- /dev/null
+++ b/po/lv.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Labi"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Jūsu ierīce ir savienota, izmantojot HDMI. Screen Mirroring savienojums ir pārtraukts."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Jūsu ierīce ir savienota, izmantojot HDMI. SideSync savienojums ir pārtraukts."
+
diff --git a/po/mk.po b/po/mk.po
new file mode 100755 (executable)
index 0000000..ee4b021
--- /dev/null
+++ b/po/mk.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Уредот Ви е поврзан преку HDMI. Поврзувањето Screen Mirroring е завршено."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Уредот Ви е поврзан преку HDMI. Поврзувањето Сајд-синк заврши."
+
diff --git a/po/nb.po b/po/nb.po
new file mode 100755 (executable)
index 0000000..261e850
--- /dev/null
+++ b/po/nb.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Enheten er koblet til via HDMI. Screen Mirroring-tilkoblingen har blitt avsluttet."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Enheten er koblet til via HDMI. SideSync-tilkoblingen har blitt avsluttet."
+
diff --git a/po/nl_NL.po b/po/nl_NL.po
new file mode 100755 (executable)
index 0000000..b11e733
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Uw apparaat is aangesloten via HDMI. De Screen Mirroring-verbinding is beëindigd."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Uw apparaat is aangesloten via HDMI. De SideSync-verbinding is beëindigd."
+
diff --git a/po/pl.po b/po/pl.po
new file mode 100755 (executable)
index 0000000..8c766ed
--- /dev/null
+++ b/po/pl.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Urządzenie jest połączone przez HDMI. Połączenie za pośrednictwem funkcji Screen Mirroring zakończyło się."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Urządzenie jest połączone przez HDMI. Połączenie za pomocą aplikacji SideSync zakończyło się."
+
diff --git a/po/pt_BR.po b/po/pt_BR.po
new file mode 100755 (executable)
index 0000000..1859576
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Seu dispositivo está conectado via HDMI. A conexão do Screen Mirroring foi encerrada."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Seu dispositivo está conectado via HDMI. A conexão do SideSync foi encerrada."
+
diff --git a/po/pt_PT.po b/po/pt_PT.po
new file mode 100755 (executable)
index 0000000..6448701
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "O seu dispositivo está ligado via HDMI. A ligação Screen Mirroring foi terminada."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "O seu dispositivo está ligado via HDMI. A ligação SideSync foi terminada."
+
diff --git a/po/ro.po b/po/ro.po
new file mode 100755 (executable)
index 0000000..a8fdc9d
--- /dev/null
+++ b/po/ro.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Dispozitivul este conectat prin HDMI. Conexiunea Screen Mirroring s-a încheiat."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Dispozitivul este conectat prin HDMI. Conexiunea prin Sincronizarea ecranelor s-a încheiat."
+
diff --git a/po/ru_RU.po b/po/ru_RU.po
new file mode 100755 (executable)
index 0000000..614feb6
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Устройство подключено через HDMI. Подключение Screen Mirroring разорвано."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Устройство подключено через HDMI. Подключение SideSync разорвано."
+
diff --git a/po/sk.po b/po/sk.po
new file mode 100755 (executable)
index 0000000..5a04b08
--- /dev/null
+++ b/po/sk.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Vaše zariadenie je pripojené cez HDMI. Pripojenie cez Screen Mirroring sa ukončilo."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Vaše zariadenie je pripojené cez HDMI. Pripojenie cez Súbežnú synchronizáciu sa ukončilo."
+
diff --git a/po/sl.po b/po/sl.po
new file mode 100755 (executable)
index 0000000..abdae9f
--- /dev/null
+++ b/po/sl.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "V redu"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Naprava je povezana prek vrat HDMI. Povezava z aplikacijo Screen Mirroring je končana."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Naprava je povezana prek vrat HDMI. Povezava z aplikacijo SideSync je končana."
+
diff --git a/po/sr.po b/po/sr.po
new file mode 100755 (executable)
index 0000000..245c26a
--- /dev/null
+++ b/po/sr.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Tvoj uređaj je povezan putem HDMI-a. Screen Mirroring veza je prekinuta."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Tvoj uređaj je povezan putem HDMI-a. Veza Bočne sinhronizacije je prekinuta."
+
diff --git a/po/sv.po b/po/sv.po
new file mode 100755 (executable)
index 0000000..91d3fd5
--- /dev/null
+++ b/po/sv.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Enheten är ansluten via HDMI. Screen Mirroring-anslutningen har avslutats."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Enheten är ansluten via HDMI. Sidsynkroniserings-anslutningen har avslutats."
+
diff --git a/po/tr_TR.po b/po/tr_TR.po
new file mode 100755 (executable)
index 0000000..c20c272
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "Tamam"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Cihazınız HDMI üzerinden bağlı. Screen Mirroring bağlantısı kesildi."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Cihazınız HDMI üzerinden bağlı. SideSync bağlantısı kesildi."
+
diff --git a/po/uk.po b/po/uk.po
new file mode 100755 (executable)
index 0000000..4aa9ec8
--- /dev/null
+++ b/po/uk.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "ОК"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Пристрій підключено через HDMI. Підключення Screen Mirroring завершено."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Пристрій підключено через HDMI. Підключення SideSync завершено."
+
diff --git a/po/uz.po b/po/uz.po
new file mode 100755 (executable)
index 0000000..e8f5bda
--- /dev/null
+++ b/po/uz.po
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "OK"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "Qurilmangiz HDMI orqali ulangan. Screen Mirroring ulanishi tugatildi."
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "Qurilmangiz HDMI orqali ulangan. SideSync ulanishi yakunlandi."
+
diff --git a/po/zh_CN.po b/po/zh_CN.po
new file mode 100755 (executable)
index 0000000..4cf56e7
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "确定"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "您的设备已通过 HDMI 连接。屏幕共享连接已结束。"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "您的设备已通过 HDMI 连接。SideSync 连接已结束。"
+
diff --git a/po/zh_HK.po b/po/zh_HK.po
new file mode 100755 (executable)
index 0000000..530507e
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "確定"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "您的裝置已透過 HDMI 連接。Screen Mirroring 連接已結束。"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "您的裝置已透過 HDMI 連接。SideSync 連接已結束。"
+
diff --git a/po/zh_TW.po b/po/zh_TW.po
new file mode 100755 (executable)
index 0000000..1249956
--- /dev/null
@@ -0,0 +1,9 @@
+msgid "IDS_COM_SK_OK"
+msgstr "確定"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+msgstr "您的裝置已透過 HDMI 連接。已結束 Screen Mirroring 連接。"
+
+msgid "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+msgstr "您的裝置已透過 HDMI 連接。已結束 SideSync 連接。"
+
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644 (file)
index 0000000..ab084d9
--- /dev/null
@@ -0,0 +1,21 @@
+bin_PROGRAMS = extndialog
+
+extndialog_CPPFLAGS = \
+-I. \
+@EXTNDIALOG_CFLAGS@
+extndialog_CFLAGS = \
+-fPIE
+
+extndialog_LDFLAGS = \
+-pie
+
+extndialog_LDADD = \
+@EXTNDIALOG_LIBS@
+
+extndialog_SOURCES = \
+extndialog.c \
+extndialog-default.c \
+extndialog-hdmi.c
+
+MAINTAINERCLEANFILES = \
+Makefile.in 
diff --git a/src/extndialog-default.c b/src/extndialog-default.c
new file mode 100644 (file)
index 0000000..8c4dcef
--- /dev/null
@@ -0,0 +1,31 @@
+#include "extndialog.h"
+
+static void
+close_cb (void *data, Evas_Object *obj, void *event_info)
+{
+   elm_exit();
+}
+
+int
+extndialog_default_popup_add(ExtnDialogData *d_data)
+{
+   Evas_Object *pop, *bt;
+
+   if (!d_data) return -1;
+   if (strlen(d_data->dialog_args[0]) <= 0) return -1;
+   if (strlen(d_data->dialog_args[1]) <= 0) return -1;
+
+   pop = elm_popup_add(d_data->dialog_win);
+   elm_object_part_text_set(pop, "title,text", d_data->dialog_args[0]);
+   elm_object_text_set(pop, d_data->dialog_args[1]);
+
+   bt = elm_button_add(pop);
+   elm_object_text_set(bt, "Close");
+   elm_object_part_content_set(pop, "button1", bt);
+   evas_object_smart_callback_add(bt, "clicked", close_cb, NULL);
+
+   evas_object_show(bt);
+   evas_object_show(pop);
+
+   return 0;
+}
diff --git a/src/extndialog-hdmi.c b/src/extndialog-hdmi.c
new file mode 100644 (file)
index 0000000..0d2f315
--- /dev/null
@@ -0,0 +1,52 @@
+#include "extndialog.h"
+
+#define STR_SCREEN_MIRRORING "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SCREEN_MIRRORING_CONNECTION_HAS_ENDED"
+#define STR_SIDESYNC         "IDS_SMR_POP_YOUR_DEVICE_IS_CONNECTED_VIA_HDMI_THE_SIDESYNC_CONNECTION_HAS_ENDED"
+#define STR_OK               "IDS_COM_SK_OK"
+
+static void
+close_cb (void *data, Evas_Object *obj, void *event_info)
+{
+   elm_exit();
+}
+
+int
+extndialog_hdmi_popup_add (ExtnDialogData *d_data)
+{
+   Evas_Object *popup;
+   Evas_Object *btn;
+   char temp[256];
+
+   if (!d_data) return -1;
+   if (strlen(d_data->dialog_args[0]) <= 0) return -1;
+   if (!d_data->dialog_win) return -1;
+
+   if (!strcmp (d_data->dialog_args[0], "WFD"))
+      snprintf (temp, sizeof(temp), "%s", _(STR_SCREEN_MIRRORING));
+   else if (!strcmp (d_data->dialog_args[0], "DLNA"))
+      snprintf (temp, sizeof(temp), "%s", _(STR_SCREEN_MIRRORING));
+   else if (strstr (d_data->dialog_args[0], "SIDESYNC"))
+      snprintf (temp, sizeof(temp), "%s", _(STR_SIDESYNC));
+   else
+     {
+        char temp2[256];
+        snprintf (temp2, sizeof(temp2), "HDMI connected. Unknown(%s) connection ended", d_data->dialog_args[0]);
+        snprintf (temp, sizeof(temp), "%s", _(temp2));
+     }
+
+   popup = elm_popup_add (d_data->dialog_win);
+
+   elm_object_style_set(popup, "transparent");
+   evas_object_size_hint_weight_set(popup, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   elm_object_text_set (popup, temp);
+
+   btn = elm_button_add (popup);
+   elm_object_text_set (btn, _(STR_OK));
+   elm_object_part_content_set (popup, "button1", btn);
+   evas_object_smart_callback_add (btn, "clicked", close_cb, NULL);
+
+   evas_object_show (btn);
+   evas_object_show (popup);
+
+   return 0;
+}
diff --git a/src/extndialog.c b/src/extndialog.c
new file mode 100644 (file)
index 0000000..3d72a4a
--- /dev/null
@@ -0,0 +1,162 @@
+#include "extndialog.h"
+
+#define WIN_PROP_NAME "SYSTEM_POPUP"
+
+static Eina_Bool
+_update_locale (const char *domain, const char *dir)
+{
+   char *lang;
+   char *region;
+
+   lang = vconf_get_str(VCONFKEY_LANGSET);
+
+   if (lang)
+   {
+      setenv("LANG", lang, 1);
+      setenv("LC_MESSAGES", lang, 1);
+      char *r = setlocale(LC_ALL, "");
+      if (r == NULL)
+         setlocale(LC_ALL, lang);
+      free(lang);
+   }
+
+   region = vconf_get_str(VCONFKEY_REGIONFORMAT);
+   if (region)
+   {
+      setenv("LC_CTYPE", region, 1);
+      setenv("LC_NUMERIC", region, 1);
+      setenv("LC_TIME", region, 1);
+      setenv("LC_COLLATE", region, 1);
+      setenv("LC_MONETARY", region, 1);
+      setenv("LC_PAPER", region, 1);
+      setenv("LC_NAME", region, 1);
+      setenv("LC_ADDRESS", region, 1);
+      setenv("LC_TELEPHONE", region, 1);
+      setenv("LC_MEASUREMENT", region, 1);
+      setenv("LC_IDENTIFICATION", region, 1);
+      free(region);
+   }
+
+   if (!bindtextdomain(domain, dir))
+      return EINA_FALSE;
+
+   if (!textdomain(domain))
+      return EINA_FALSE;
+
+   return EINA_TRUE;
+}
+
+static Eina_Bool
+_key_down (void *data, int type, void *event)
+{
+    Ecore_Event_Key *ev = event;
+
+   if (!ev) return ECORE_CALLBACK_PASS_ON;
+
+    if(strcmp(ev->keyname, KEY_HOME) && strcmp(ev->keyname, KEY_BACK))
+        return ECORE_CALLBACK_DONE;
+
+    elm_exit();
+
+    return ECORE_CALLBACK_DONE;
+}
+
+static void
+_win_del(void *data, Evas_Object *obj, void *event_info)
+{
+   elm_exit();
+}
+
+static int
+_popup_add(ExtnDialogData *d_data)
+{
+   if (!strcmp (d_data->dialog_type, "HDMI-CONVERGENCE"))
+      return extndialog_hdmi_popup_add (d_data);
+   else
+      return extndialog_default_popup_add (d_data);
+}
+
+static void
+_parse_args(int argc, char **argv, ExtnDialogData *d_data)
+{
+   const char *param;
+   int i;
+
+   _STRING_INIT(2, param);
+   snprintf (d_data->dialog_type, DIALOG_STR_LEN, "%s", param);
+
+   _STRING_INIT(3, param);
+   snprintf (d_data->dialog_title, DIALOG_STR_LEN, "%s", param);
+
+   for (i = 4; i <= argc && (i - 4) < DIALOG_ARGS_NUM; i++)
+   {
+      _STRING_INIT(i, param);
+      snprintf (d_data->dialog_args[i-4], DIALOG_STR_LEN - (i-4), "%s", param);
+   }
+}
+
+char*
+extndialog_gettext(const char *s)
+{
+   if (s == NULL) return "NULL";
+
+   char *p = dgettext (GETTEXT_PACKAGE, s);
+
+#ifdef _ENV_MOBILE_
+   if (p && !strcmp(s, p))
+      p = dgettext ("sys_string", s);
+#endif
+#ifdef _ENV_WEARABLE_
+   if (!p) return "NULL";
+#endif
+
+   return p;
+}
+
+static ExtnDialogData g_data;
+
+int
+elm_main(int argc, char **argv)
+{
+   const char *profile = "mobile";
+   Ecore_X_Window xwin;
+   int rots[4] = { 0, 90, 180, 270 };
+   ExtnDialogData *d_data = &g_data;
+
+   _update_locale (GETTEXT_PACKAGE, "/usr/share/locale");
+
+   memset (d_data, 0, sizeof (ExtnDialogData));
+   _parse_args (argc, argv, d_data);
+
+   d_data->dialog_win = elm_win_add(NULL, d_data->dialog_type, ELM_WIN_NOTIFICATION);
+   if (!d_data->dialog_win) return -1;
+
+   elm_win_title_set(d_data->dialog_win, d_data->dialog_title);
+   evas_object_smart_callback_add(d_data->dialog_win, "delete,request", _win_del, NULL);
+   elm_win_alpha_set(d_data->dialog_win, EINA_TRUE);
+   elm_win_borderless_set(d_data->dialog_win, EINA_TRUE);
+   elm_win_profiles_set(d_data->dialog_win, &profile, 1);
+
+   if (_popup_add(d_data))
+     {
+        evas_object_del (d_data->dialog_win);
+        return -1;
+     }
+
+   evas_object_show(d_data->dialog_win);
+
+   ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _key_down, d_data);
+   xwin = elm_win_xwindow_get(d_data->dialog_win);
+   utilx_grab_key(ecore_x_display_get(), xwin, KEY_HOME, SHARED_GRAB);
+   utilx_grab_key(ecore_x_display_get(), xwin, KEY_BACK, SHARED_GRAB);
+
+   ecore_x_icccm_name_class_set(xwin, WIN_PROP_NAME, WIN_PROP_NAME);
+   if (elm_win_wm_rotation_supported_get(d_data->dialog_win))
+      elm_win_wm_rotation_available_rotations_set(d_data->dialog_win, (const int*)&rots, 4);
+
+   elm_run();
+
+   elm_shutdown();
+   return 0;
+}
+ELM_MAIN()
diff --git a/src/extndialog.h b/src/extndialog.h
new file mode 100644 (file)
index 0000000..5c925ef
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef __EXTNDIALOG_H__\r
+#define __EXTNDIALOG_H__\r
+\r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif /* HAVE_CONFIG_H */\r
+\r
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>\r
+#include <Ecore_X.h>\r
+#include <Elementary.h>\r
+#include <utilX.h>\r
+#include <utilX_ext.h>\r
+#include <vconf.h>
+#include <libintl.h>\r
+\r
+#define DIALOG_ARGS_NUM 10\r
+#define DIALOG_STR_LEN 128\r
+
+#ifdef _\r
+#undef _
+#endif
+
+#define _(s) extndialog_gettext(s)\r
+\r
+#define _STRING_INIT(i, s) {                           \\r
+   if (argc >= i) s = eina_stringshare_add(argv[i-1]); \
+   else s = eina_stringshare_add("Not specified");     \
+}
+\r
+typedef struct\r
+{\r
+   char dialog_type[DIALOG_STR_LEN];\r
+   char dialog_title[DIALOG_STR_LEN];\r
+   char dialog_args[DIALOG_ARGS_NUM][DIALOG_STR_LEN];\r
+   Evas_Object *dialog_win;\r
+} ExtnDialogData;\r
+\r
+char* extndialog_gettext(const char *s);\r
+int extndialog_default_popup_add(ExtnDialogData *d_data);\r
+int extndialog_hdmi_popup_add(ExtnDialogData *d_data);\r
+\r
+#endif\r