Commit eb11a0ac authored by Mark Lindner's avatar Mark Lindner

added ls-config in contrib

parent fd95e2de
This diff is collapsed.
ls-config
=========
Simple program to use libconfig9 configuration files in bash scripts
You can use libcongig9 files directly invoking ls-config, or in bash script
by sourcing lslib-core and then usinig simpe cfg_* functions. In this case
You must set LS_EXEC to 1 before sourcing lslib-core
Existing error codes available in doc/ folder.
Samplne usage place in: sample/ folder.
Languages:
- english
- polish
We need some help to build packaging for direff systems, and with transtalions
tu other languates.
Full changelog available in doc/changelog.txt
The Debian Package ls-config
----------------------------
This package allow to use libconfig9 style configuration files
in bash scripts
Comments regarding the Package
-- Łukasz A. Grabowski <www@lucas.net.pl> Fri, 11 Oct 2013 21:07:07 +0200
ls-config (1.0.3) stable; urgency=low
* Initial Release.
-- Łukasz A. Grabowski <www@lucas.net.pl> Fri, 11 Oct 2013 21:07:07 +0200
Source: ls-config
Section: main
Priority: standard
Maintainer: Łukasz A. Grabowski <www@lucas.net.pl>
Build-Depends: debhelper (>= 8.0.0), libconfig9
Standards-Version: 3.9.3
Homepage: http://www.lucas.net.pl
Vcs-Git: https://github.com/lucas-net-pl/ls-config.git
Vcs-Browser: https://github.com/lucas-net-pl/ls-config
Package: ls-config
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Simple program allo use libconfig style conf in bash
This software allo to use libconfig9 style configuration files
in bash scripts by invoke this soft. It contain bash library too,
witch easying this job.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ls-config
Source: https://github.com/lucas-net-pl/ls-config
Files: *
Copyright: 2013 Łukasz A. Grabowski <www@lucas.net.pl>
License: GPL-2.0+
Files: debian/*
Copyright: 2013 Łukasz A. Grabowski <www@lucas.net.pl>
License: GPL-2.0+
License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
ls-config_1.0.3_i386.deb main standard
.\"Created with GNOME Manpages Editor
.\"https://github.com/lucas-net-pl/ls-config
.\"Replace <program> with the program name, x with the Section Number
.TH ls-config x "1" "" "Linux User's Manual"
.SH NAME
ls-config \- program to use libconfig9 configuration files in bash scripts
..SH SYNOPSIS
.B ls-config
[\fB\-f\fR \fIFILE\fR]
.RI [ options ]
.br
.SH DESCRIPTION
You can use libcongig9 files directly invoking ls-config.
Remember to call ls-config always with -f parameter,
wich give ls-config inormation wich config file use.
Then this program operate in three based modes:
-g (get) for reading values (default)
-s (set) for store values
-h (help) for display help message
both parameter (-g and -s) nedd to give it variable path
(internal configuration variable path)
.SH OPTIONS
.TP
.BR \-f ", " \-\-file =\fIFILE\fR
Configuration file to handle.
.TP
.BR \-s ", " \-\-set =\fIPATH\fR
Set configuration variable of given path.
.TP
.BR \-d ", " \-\-data =\fIDATA\fR
Configuration variable value (only with -s)
.TP
.BR \-p ", " \-\-type =\fITYPE\fR
Configuration value type
.TP
.BR \-g ", " \-\-get =\fIPATH\fR
Get configuration variable of given path.
.TP
.BR \-n ", " \-\-names
Printout variables names.
.TP
.BR \-t ", " \-\-types
Printout variables types.
.TP
.BR \-v ", " \-\-values
Printout variables values.
.TP
.BR \-i ", " \-\-indexes
Printout variables indexes.
.TP
.BR \-c ", " \-\-count
Printout elements count (only: array, list, group).
.TP
.BR \-b ", " \-\-bool\-string
Printout boolean variables as text.
.TP
.BR \-q ", " \-\-quiet
Quiet output to use in scripts.
.TP
.BR \-h ", " \-\-help
Print this help message.
.TP
Variable \fITYPE\fRs:
group - variables group,
array - array of variables,
list - list of variables,
int - integer number,
int64 - 64bit integer number,
float - float point number,
bool - boolean value,
string - character string.
.SH NOTES
Exiting eerror codes:
0 - exit with no error
1 - Cen't access witch right mode (read or write) configuration file.
2 - (not used),
3 - Variable of given path not found (path not found).
4 - Variable path not given.
5 - Can't remove root element (cused if someone try to unset it)
6 - Can't find parent element
7 - Variable unset failed.
8 - Configuration file write failed.
9 - Variable value not given.
10 - Inconsistent value type (caused if set exisitng variablen and give type another then saved).
11 - Variable set failed.
12 - Incorrect data format.
13 - Variable type not given (in som cases tu set variable, giving his type are necesery).
14 - Inlegal data type (caused if user give type thet not known for libconfig9).
15 - Bad name of variable (curently chcecking only if enpty stringa are given).
16 - Inavlid configuration variable path.
17 - New named configuration variable can be added only to group element.
18 - Prohibited data type (caused when use type then connot be use in given case).
dh_auto_configure
dh_auto_build
dh_auto_test
dh_prep
dh_installdirs
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_installcatalogs
dh_installcron
dh_installdebconf
dh_installemacsen
dh_installifupdown
dh_installinfo
dh_pysupport
dh_installinit
dh_installmenu
dh_installmime
dh_installmodules
dh_installlogcheck
dh_installlogrotate
dh_installpam
dh_installppp
dh_installudev
dh_installwm
dh_installxfonts
dh_installgsettings
dh_bugfiles
dh_ucf
dh_lintian
dh_gconf
dh_icons
dh_perl
dh_usrlocal
dh_link
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dh_builddeb
ls-config usr/share/ls/lib/
lslib-core usr/share/ls/lib/
src/locale/* usr/share/locale/
doc/* usr/share/doc/ls-config/
sample/* usr/share/doc/ls-config/sample/
README.md usr/share/doc/ls-config/README.txt
\ No newline at end of file
Package: ls-config
Version: 1.0.3
Architecture: i386
Maintainer: Łukasz A. Grabowski <www@lucas.net.pl>
Installed-Size: 27
Section: unknown
Priority: extra
Homepage: http://www.lucas.net.pl
Description: Simple program allo use libconfig style conf in bash
This software allo to use libconfig9 style configuration files
in bash scripts by invoke this soft. It contain bash library too,
witch easying this job.
17ee68fa6924ad7f69ca91bee808281b usr/share/doc/ls-config/changelog.gz
962fc567b180716388e62add5c6bfae5 usr/share/doc/ls-config/copyright
#!/bin/sh
# postinst script for ls-config
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ls-config
Source: https://github.com/lucas-net-pl/ls-config
Files: *
Copyright: 2013 Łukasz A. Grabowski <www@lucas.net.pl>
License: GPL-2.0+
Files: debian/*
Copyright: 2013 Łukasz A. Grabowski <www@lucas.net.pl>
License: GPL-2.0+
License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#!/bin/sh
# postinst script for ls-config
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
config_path() {
local CHK="$(echo ":$PATH:" | grep ":/usr/share/ls/lib:")"
if [ "$CHK" != "" ]; then
return 0;
fi;
local BIFS="$IFS"
IFS=$'\n'
local PR="$(</etc/profile)"
local NF=""
local L
for L in $PR
do
CHK="$(echo "$L" | sed -E 's/^([\ \t]+)//g')"
CHK="${CHK:0:5}"
NF="$NF$IFS$L"
if [ "$CHK" == "PATH=" ]; then
NF="$NF$IFS#Configuration path for ls scripting"
NF="$NF$IFS"
NF="${NF}PATH=\"\$PATH:/usr/share/ls/lib\"$IFS"
fi;
done
NF="$NF$IFS"
IFS="$BIFS"
echo "$NF" > /etc/profile
}
case "$1" in
configure)
if [ ! -e "/etc/ls" ]; then
mkdir -p "/etc/ls/"
config_path
fi;
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/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
%:
dh $@
Instalation:
------------
First of all, You must place ls-config binary and lslib-core bash
script in the same directory (default: /usr/share/ls/lib)
Next in lslib-core header chcange configuration:
PACD tu point to parent directory of paced files
then LIBD must point relative (tu PACD) to directory
whrere script placed
Usage:
------
In You bash script, first of all define LS_EXEC variable,
and set his value to 1. (It protect lslib-core) to run
standalone
Next, source library:
source /usr/share/ls/lib/lslib-core
After thet You can use following function:
Functions:
----------
cfg_g $PATH - this echo variable value of given PATH
and return error code
cfg_t $PATH - this echo variable type of given PATH
and return error code
cfg_c $PATH - this echo cout of variable elements
and return error code
cfg_s $PATH $DATA [$TYPE] - this set variable of given PATH or create new
variable valuse are set to DATA, and if this
create new variable, variable will be type TYPE
cfg_u $PATH - this unset (remove) variable of given PATH
and return error code
cfg_f_g $FILE $PATH - same as cfg_g, but operate on given FILE
cfg_f_t $FILE $PATH - same as cfg_t, but operate on given FILE
cfg_f_c $FILE $PATH - same as cfg_c, but operate on given FILE
cfg_f_s $FILE $PATH $DATA [$TYPE] - same as cfg_s, but operate on given FILE
cfg_f_u $FILE $PATH - same as cfg_u, but operate on given FILE
Configuration files:
--------------------
By default configuration file are placed in /etc/ls/
with the same name as script file name
(used in cfg_g, cfg_t, cfg_c, cfg_s, cfg_u)
But if You need, You can use any location of configuration file
by using cfg_f_* functions, giving configuration file location as
first argument
Detailed configuration file shema are publicated on:
http://www.hyperrealm.com/libconfig/
And his gramar on:
http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
there are only short describe:
configuration = setting-list | empty
setting-list = setting | setting-list setting
setting = name (":" | "=") value (";" | "," | empty)
value = scalar-value | array | list | group
value-list = value | value-list "," value
scalar-value = boolean | integer | integer64 | hex | hex64 | float | string
scalar-value-list = scalar-value | scalar-value-list "," scalar-value
array = "[" (scalar-value-list | empty) "]"
list = "(" (value-list | empty) ")"
group = "{" (setting-list | empty) "}"
empty =
smaple configuration file and script are available on sample/ directory
config - samble configuration file
script - sample script, then read info variable from config file
Instalation:
------------
First place somewhere ls-config binary, or make it from source
Then if You woud like use it with national translation, then You muas build
it form source and then copy *.mo files according to You system
Usage:
------
Remember to call ls-config always with -f parameter,
wich give ls-config inormation wich config file use.
Then this program operate in three based modes:
-g (get) for reading values (default)
-s (set) for store values
-h (help) for display help message
both parameter (-g and -s) nedd to give it variable path
(internal configuration variable path)
for exapmle read info value from config file:
ls-config -f config -g info
Then You can set this value to another
ls-config -f config -s info -d "Somethint to write"
But when You wand to addn new configutation variable you must
specify his type:
ls-config -f config -s someint -d 10 -p int
You can remove (unset) variable too. This is subfunstion of setting:
ls-config -f config -s someint -u
When reading You cent use following flag:
-v - read only variable valut
-t - read only variable type
-c - read only variable element count (sense only in types: array, list, group)
-i - read only variable index (sense only in type: array, list)
-n - read only variable name
and sometimes usable
-q - to wori in quiet mode usable in scripts.
For example to read variable somevar type, where variable in group foo:
ls-config -f config -g "foo.somevar" -t
For detailed list of parametera (long options available too) run ls-config
in help mode:
ls-config -h
Configuraiton files:
--------------------
Detailed configuration file shema are publicated on:
http://www.hyperrealm.com/libconfig/
And his gramar on:
http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
there are only short describe:
configuration = setting-list | empty
setting-list = setting | setting-list setting
setting = name (":" | "=") value (";" | "," | empty)
value = scalar-value | array | list | group
value-list = value | value-list "," value
scalar-value = boolean | integer | integer64 | hex | hex64 | float | string
scalar-value-list = scalar-value | scalar-value-list "," scalar-value
array = "[" (scalar-value-list | empty) "]"
list = "(" (value-list | empty) ")"
group = "{" (setting-list | empty) "}"
empty =
smaple configuration file and script are available on sample/ directory
config - samble configuration file
script - sample script, then read info variable from config file
Version 1.0.3
-------------
Fully commented code,
Startin with documentation
bugfixes
- fix some badly returned exit codes
- remove duplicate error messages
- l10n textdomain corrected
- extend sample configuration file to be full representative
- some corrections in sample script (adding directly usaga)
new features
- adding documentation files (api)
Version 1.0.1
-------------
Internaly translated tu englich
Verison 1.0.0
-------------
First publicated and working version
\ No newline at end of file
0 - exit with no error
1 - Cen't access witch right mode (read or write) configuration file.
2 - (not used),
3 - Variable of given path not found (path not found).
4 - Variable path not given.
5 - Can't remove root element (cused if someone try to unset it)
6 - Can't find parent element
7 - Variable unset failed.
8 - Configuration file write failed.
9 - Variable value not given.
10 - Inconsistent value type (caused if set exisitng variablen and give type another then saved).
11 - Variable set failed.
12 - Incorrect data format.
13 - Variable type not given (in som cases tu set variable, giving his type are necesery).
14 - Inlegal data type (caused if user give type thet not known for libconfig9).
15 - Bad name of variable (curently chcecking only if enpty stringa are given).
16 - Inavlid configuration variable path.
17 - New named configuration variable can be added only to group element.
18 - Prohibited data type (caused when use type then connot be use in given case).
#!/bin/bash
#title :lslib-core
#description :core library for LS scripts
#author :Łukasz A. Grabowski <www@lucas.net.pl>
#date :20130928
#version :1.0.3
#notes :
#bash_version :4.2.37(1)-release
#copywrite :Copyright (C) 2013 Łukasz A. Grabowski
#license :This program is free software: you can redistribute
# :it and/or modify it under the terms of the GNU General
# :Public License as published by the Free Software
# :Foundation, either version 2 of the License or
# :any later version.
# :
# :This program is distributed in the hope that it will
# :be useful, but WITHOUT ANY WARRANTY; without even the
# :implied warranty of MERCHANTABILITY or FITNESS FOR
# :A PARTICULAR PURPOSE. See the GNU General Public
# :License for more details.
# :
# :You should have received a copy of the GNU General
# :Public License along with this program. If not, see
# :http://www.gnu.org/licenses/.
#=======================================================================
#################
# Configuration #
#################
PACD="/usr/share/ls" #main directory for LS scripts
LIBD="lib" #library dir for LS scripts
#######################
# Predefined and init #
#######################
if [ -z "$LS_EXEC" ]; then
echo "This script are only for inclusion in LS packet scripts. Don't use it itself." 1>&2
exit 1
fi
##############################
# configuration read / write #
##############################
#get configuration
# cfg_g PATH
cfg_g() {
local PTH=""
if [ $# -gt 0 ]; then
local PTH="$1";
fi;
local DAT
local ERR
DAT="$($PACD/$LIBD/ls-config -f "$CFGFN" -qv --get="$PTH")"
ERR=$?
echo "$DAT"
return $ERR
}
#get configuration type
# cfg_t PATH
cfg_t() {
local PTH=""
if [ $# -gt 0 ]; then
local PTH="$1";
fi;
local DAT
local ERR
DAT="$($PACD/$LIBD/ls-config -f "$CFGFN" -qt --get="$PTH")"
ERR=$?
echo "$DAT"
return $ERR
}
#get configuration items count
# cfg_c PATH
cfg_c() {
local PTH=""
if [ $# -gt 0 ]; then
local PTH="$1";
fi;
local DAT
local ERR
DAT="$($PACD/$LIBD/ls-config -f "$CFGFN" -qc --get="$PTH")"
ERR=$?
echo "$DAT"
return $ERR
}
#set configuration
# cfg_s PATH DATA [TYPE=string]
cfg_s() {
local PTH=""
if [ $# -gt 0 ]; then
local PTH="$1";
fi;
local DATA=""
if [ $# -gt 1 ]; then
local DATA="$2";
fi;
local TYPE="string"
if [ $# -gt 2 ]; then
local TYPE="$3";
fi;
local DAT
local ERR
DAT="$($PACD/$LIBD/ls-config -f "$CFGFN" -q --set="$PTH" --data="$DATA" --type="$TYPE")"
ERR=$?
echo "$DAT"
return $ERR
}
#remove configuration
# cfg_u PATH
cfg_u() {
local PTH=""
if [ $# -gt 0 ]; then
local PTH="$1";
fi;
local DAT
local ERR
DAT="$($PACD/$LIBD/ls-config -f "$CFGFN" -q --set="$PTH" --unset)"
ERR=$?
return $ERR
}
cfg_f_g() {
local BCFN="$CFGFN"
local EX
CFGFN="$1"
shift
cfg_g "$@"
EX=$?
CFGFN="$BCFN"
return $EX
}
cfg_f_t() {
local BCFN="$CFGFN"
local EX
CFGFN="$1"
shift
cfg_t "$@"
EX=$?
CFGFN="$BCFN"
return $EX
}
cfg_f_c() {
local BCFN="$CFGFN"
local EX
CFGFN="$1"
shift
cfg_c "$@"
EX=$?
CFGFN="$BCFN"
return $EX
}
cfg_f_s() {
local BCFN="$CFGFN"
local EX
CFGFN="$1"
shift
cfg_s "$@"
EX=$?
CFGFN="$BCFN"
return $EX
}
cfg_f_u() {
local BCFN="$CFGFN"
local EX
CFGFN="$1"
shift
cfg_u "$@"
EX=$?
CFGFN="$BCFN"
return $EX
}
######################
# base variable init #
######################
#package name
SCRFN="$(basename "$0")"
#configuriation directory and file
if [ -z "$CFGD" ]; then
CFGD="/etc/ls"
fi;
CFGFN="$CFGD/$SCRFN"
all:
make -C src
clean:
make -C src clean
grp :
{
value = 10;
name = "sample";
};
lst = (
{
name = "sample";
},
{
comment = "sample secong group";
val = 10.2;
} );
info = "more info about types in libconfig9 documentations";
arr = [ 10, 20, 30 ];
integer = 100;
longint = 100L;
flo = 100.01;
boolean :
{
truevalue = true;
falsevalue = false;
};
#!/bin/bash
#title :script
#description :this script only demonstrate usage of ls-config
#author :Łukasz A. Grabowski <www@lucas.net.pl>
#date :20130928
#version :1.0.3
#notes :This only read one value from configuration file
# :this script MUST be run from subdirectory of dir
# :where ls-config (bin) and lslib-core are stored
# :to place script in other places You must reconfigure paths
#bash_version :4.2.37(1)-release
#copywrite :Copyright (C) 2013 Łukasz A. Grabowski
#license :This program is free software: you can redistribute
# :it and/or modify it under the terms of the GNU General
# :Public License as published by the Free Software
# :Foundation, either version 2 of the License or
# :any later version.
# :
# :This program is distributed in the hope that it will
# :be useful, but WITHOUT ANY WARRANTY; without even the
# :implied warranty of MERCHANTABILITY or FITNESS FOR
# :A PARTICULAR PURPOSE. See the GNU General Public
# :License for more details.
# :
# :You should have received a copy of the GNU General
# :Public License along with this program. If not, see
# :http://www.gnu.org/licenses/.
#=======================================================================
#set app flag
LS_EXEC=1
#set configuration directory
CFGD="./"
#source bash library to manipulate config
source ../lslib-core
#path direcrories onlny for this sample
PACD="../"
LIBD=""
#end path
#read data from configuration file
TEST=$(cfg_f_g "config" "info")
ERR="$?"
#show data
echo "Info value: $TEST"
echo "Reading error: $ERR"
#show other method of reading value:
#output space and info
echo ""
echo "Reading using binary:"
#read data from configuration file
TEST=$(${PACD}ls-config -f config --get="info" -vq)
ERR="$?"
#show data
echo "Info value: $TEST"
echo "Reading error: $ERR"
exit 0;
This diff is collapsed.
CC=gcc
CFLAGS=-O2 -Wall
#Use for DEVELOP mode:
#DEVFLAGS=-g -D __DEVEL__
#Use for PRODUCTION mode:
DEVFLAGS=-s -fomit-frame-pointer
all: ls-config langs
ls-config: ls-config.c ls-config.pot
$(CC) $(CFLAGS) $(DEVFLAGS) -o ../ls-config ls-config.c -L../lib -lm -lconfig
ls-config.pot:
xgettext -d ls-config -o po/ls-config.pot ls-config.c
langs:
make -C po
install:
mkdir -p /usr/share/ls/lib
chown root:adm /usr/share/ls/lib
cp ../ls-config /usr/share/ls/lib/
chown root:adm /usr/share/ls/lib
chmod 755 /usr/share/ls/lib/ls-config
make -C po install
clean:
make -C po clean
remove:
rm -f /usr/share/ls/lib/ls-config
make -C po remove
# Language en-GB translations for PACKAGE package.
# Copyright (C) 2013 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Łukasz A. Grabowski <lucas@lucas.net.pl>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-10-06 19:23+0200\n"
"PO-Revision-Date: 2013-09-09 23:56+0200\n"
"Last-Translator: Łukasz A. Grabowski <lucas@lucas.net.pl>\n"
"Language-Team: Language en-GB\n"
"Language: en-GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ls-config.c:49
#, c-format
msgid "Configuration file handling\n"
msgstr "Configuration file handling\n"
#: ls-config.c:51
#, c-format
msgid "Usage: ls-config [OPTION]\n"
msgstr "Usage: ls-config [OPTION]\n"
#: ls-config.c:52
#, c-format
msgid "Reading and writening data from configuration files\n"
msgstr "Reading and writening data from configuration files\n"
#: ls-config.c:53
#, c-format
msgid "in libconfig9 format.\n"
msgstr "in libconfig9 format.\n"
#: ls-config.c:55
#, c-format
msgid "CAUTION: using without given config file are cause error!\n"
msgstr "CAUTION: using without given config file are cause error!\n"
#: ls-config.c:57
#, c-format
msgid "Available options:\n"
msgstr "Available options:\n"
#: ls-config.c:58
#, c-format
msgid " -f, --file=FILE Configuration file to handle.\n"
msgstr " -f, --file=FILE Configuration file to handle.\n"
#: ls-config.c:60
#, c-format
msgid " -s, --set=PATH Set configuration variable of given path.\n"
msgstr " -s, --set=PATH Set configuration variable of given path.\n"
#: ls-config.c:61
#, c-format
msgid " -d, --data=DATA Configuration variable value (only with -s)\n"
msgstr " -d, --data=DATA Configuration variable value (only with -s)\n"
#: ls-config.c:62
#, c-format
msgid " -p, --type=TYPE Configuration value type\n"
msgstr " -p, --type=TYPE Configuration value type\n"
#: ls-config.c:64
#, c-format
msgid " -g, --get=PATH Get configuration variable of given path.\n"
msgstr " -g, --get=PATH Get configuration variable of given path.\n"
#: ls-config.c:65
#, c-format
msgid " -n, --names Printout variables names.\n"
msgstr " -n, --names Printout variables names.\n"
#: ls-config.c:66
#, c-format
msgid " -t, --types Printout variables types.\n"
msgstr " -t, --types Printout variables types.\n"
#: ls-config.c:67
#, c-format
msgid " -v, --values Printout variables values.\n"
msgstr " -v, --values Printout variables values.\n"
#: ls-config.c:68
#, c-format
msgid " -i, --indexes Printout variables indexes.\n"
msgstr " -i, --indexes Printout variables indexes.\n"
#: ls-config.c:69
#, c-format
msgid ""
" -c, --count Printout elements count (only: array, list, "
"group).\n"
msgstr ""
" -c, --count Printout elements count (only: array, list, "
"group).\n"
#: ls-config.c:70
#, c-format
msgid " -b, --bool-string Printout boolean variables as text.\n"
msgstr " -b, --bool-string Printout boolean variables as text.\n"
#: ls-config.c:72
#, c-format
msgid " -q, --quiet Quiet output to use in scripts.\n"
msgstr " -q, --quiet Quiet output to use in scripts.\n"
#: ls-config.c:73
#, c-format
msgid " -h, --help Print this help message.\n"
msgstr " -h, --help Print this help message.\n"
#: ls-config.c:75
#, c-format
msgid "TYPE: Variable types:\n"
msgstr "TYPE: Variable types:\n"
#: ls-config.c:76
#, c-format
msgid " group - variables group,\n"
msgstr " group - variables group,\n"
#: ls-config.c:77
#, c-format
msgid " array - array of variables,\n"
msgstr " array - array of variables (same scalar type),\n"
#: ls-config.c:78
#, c-format
msgid " list - list of variables,\n"
msgstr " list - list of variables,\n"
#: ls-config.c:79
#, c-format
msgid " int - integer number,\n"
msgstr " int - integer number,\n"
#: ls-config.c:80
#, c-format
msgid " int64 - 64bit integer number,\n"
msgstr " int64 - 64bit integer number,\n"
#: ls-config.c:81
#, c-format
msgid " float - float point number,\n"
msgstr " float - float point number,\n"
#: ls-config.c:82
#, c-format
msgid " bool - boolean value,\n"
msgstr " bool - boolean value,\n"
#: ls-config.c:83
#, c-format
msgid " string - character string.\n"
msgstr " string - character string.\n"
#: ls-config.c:87
#, c-format
msgid "Licence: "
msgstr "Licence: "
#: ls-config.c:102 ls-config.c:126 ls-config.c:149 ls-config.c:172
#, c-format
msgid "ERROR! Incorrect data format.\n"
msgstr "ERROR! Incorrect data format.\n"
#: ls-config.c:110 ls-config.c:133 ls-config.c:156 ls-config.c:179
#: ls-config.c:346 ls-config.c:364 ls-config.c:431 ls-config.c:477
#: ls-config.c:507 ls-config.c:535 ls-config.c:555 ls-config.c:575
#: ls-config.c:595 ls-config.c:602 ls-config.c:616 ls-config.c:662
#: ls-config.c:681 ls-config.c:739
#, c-format
msgid "ERROR! Variable set failed.\n"
msgstr "ERROR! Variable set failed.\n"
#: ls-config.c:272 ls-config.c:779 ls-config.c:855 ls-config.c:1314
#, c-format
msgid "ERROR! Can't read configuration file.\n"
msgstr "ERROR! Can't read configuration file.\n"
#: ls-config.c:279 ls-config.c:785 ls-config.c:1322
#, c-format
msgid "ERROR! Conviguration variable path not given.\n"
msgstr "ERROR! Conviguration variable path not given.\n"
#: ls-config.c:284
#, c-format
msgid "ERROR! Configuration variable value not given.\n"
msgstr "ERROR! Configuration variable value not given.\n"
#: ls-config.c:303
#, c-format
msgid "ERROR! Inavlid configuration variable path.\n"
msgstr "ERROR! Inavlid configuration variable path.\n"
#: ls-config.c:310
#, c-format
msgid ""
"ERROR! New named configuration variable can be added only to group element.\n"
msgstr ""
"ERROR! New named configuration variable can be added only to group element.\n"
#: ls-config.c:316 ls-config.c:454 ls-config.c:634 ls-config.c:705
#, c-format
msgid "ERROR! Configuration variable type not given.\n"
msgstr "ERROR! Configuration variable type not given.\n"
#: ls-config.c:339 ls-config.c:655 ls-config.c:732
#, c-format
msgid "ERROR! Inlegal data type.\n"
msgstr "ERROR! Inlegal data type.\n"
#: ls-config.c:385 ls-config.c:398 ls-config.c:411 ls-config.c:424
#: ls-config.c:438 ls-config.c:528 ls-config.c:548 ls-config.c:568
#: ls-config.c:588 ls-config.c:609
#, c-format
msgid "ERROR! inconsistent value type.\n"
msgstr "ERROR! inconsistent value type.\n"
#: ls-config.c:470
#, c-format
msgid "ERROR! Prohibited data type.\n"
msgstr "ERROR! Prohibited data type.\n"
#: ls-config.c:696 ls-config.c:746
#, c-format
msgid "Added element index: %d\n"
msgstr "Added element index: %d\n"
#: ls-config.c:710
#, c-format
msgid "ERROR! Bad name of configuration variable.\n"
msgstr "ERROR! Bad name of configuration variable.\n"
#: ls-config.c:758 ls-config.c:820
#, c-format
msgid "ERROR! Configuration file write failed.\n"
msgstr "ERROR! Configuration file write failed.\n"
#: ls-config.c:792 ls-config.c:867
#, c-format
msgid "ERROR! Given variable path not found.\n"
msgstr "ERROR! Given variable path not found.\n"
#: ls-config.c:799
#, c-format
msgid "ERROR! Can't remove root element.\n"
msgstr "ERROR! Can't remove root element.\n"
#: ls-config.c:806
#, c-format
msgid "ERROR! Can't find parent element.\n"
msgstr "ERROR! Can't find parent element.\n"
#: ls-config.c:813
#, c-format
msgid "ERROR! Variable unset failed.\n"
msgstr "ERROR! Variable unset failed.\n"
#: ls-config.c:1115
#, c-format
msgid "Variable name: %s\n"
msgstr "Variable name: %s\n"
#: ls-config.c:1118
#, c-format
msgid "Variable type: %s\n"
msgstr "Variable type: %s\n"
#: ls-config.c:1121
#, c-format
msgid "Variable value: %s\n"
msgstr "Variable value: %s\n"
#: ls-config.c:1124
#, c-format
msgid "Variable index: %d\n"
msgstr "Variable index: %d\n"
#: ls-config.c:1127
#, c-format
msgid "Variable elements count: %d\n"
msgstr "Variable elements count: %d\n"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-10-11 22:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ls-config.c:49
#, c-format
msgid "Configuration file handling\n"
msgstr ""
#: ls-config.c:51
#, c-format
msgid "Usage: ls-config [OPTION]\n"
msgstr ""
#: ls-config.c:52
#, c-format
msgid "Reading and writening data from configuration files\n"
msgstr ""
#: ls-config.c:53
#, c-format
msgid "in libconfig9 format.\n"
msgstr ""
#: ls-config.c:55
#, c-format
msgid "CAUTION: using without given config file are cause error!\n"
msgstr ""
#: ls-config.c:57
#, c-format
msgid "Available options:\n"
msgstr ""
#: ls-config.c:58
#, c-format
msgid " -f, --file=FILE Configuration file to handle.\n"
msgstr ""
#: ls-config.c:60
#, c-format
msgid " -s, --set=PATH Set configuration variable of given path.\n"
msgstr ""
#: ls-config.c:61
#, c-format
msgid " -d, --data=DATA Configuration variable value (only with -s)\n"
msgstr ""
#: ls-config.c:62
#, c-format
msgid " -p, --type=TYPE Configuration value type\n"
msgstr ""
#: ls-config.c:64
#, c-format
msgid " -g, --get=PATH Get configuration variable of given path.\n"
msgstr ""
#: ls-config.c:65
#, c-format
msgid " -n, --names Printout variables names.\n"
msgstr ""
#: ls-config.c:66
#, c-format
msgid " -t, --types Printout variables types.\n"
msgstr ""
#: ls-config.c:67
#, c-format
msgid " -v, --values Printout variables values.\n"
msgstr ""
#: ls-config.c:68
#, c-format
msgid " -i, --indexes Printout variables indexes.\n"
msgstr ""
#: ls-config.c:69
#, c-format
msgid ""
" -c, --count Printout elements count (only: array, list, "
"group).\n"
msgstr ""
#: ls-config.c:70
#, c-format
msgid " -b, --bool-string Printout boolean variables as text.\n"
msgstr ""
#: ls-config.c:72
#, c-format
msgid " -q, --quiet Quiet output to use in scripts.\n"
msgstr ""
#: ls-config.c:73
#, c-format
msgid " -h, --help Print this help message.\n"
msgstr ""
#: ls-config.c:75
#, c-format
msgid "TYPE: Variable types:\n"
msgstr ""
#: ls-config.c:76
#, c-format
msgid " group - variables group,\n"
msgstr ""
#: ls-config.c:77
#, c-format
msgid " array - array of variables,\n"
msgstr ""
#: ls-config.c:78
#, c-format
msgid " list - list of variables,\n"
msgstr ""
#: ls-config.c:79
#, c-format
msgid " int - integer number,\n"
msgstr ""
#: ls-config.c:80
#, c-format
msgid " int64 - 64bit integer number,\n"
msgstr ""
#: ls-config.c:81
#, c-format
msgid " float - float point number,\n"
msgstr ""
#: ls-config.c:82
#, c-format
msgid " bool - boolean value,\n"
msgstr ""
#: ls-config.c:83
#, c-format
msgid " string - character string.\n"
msgstr ""
#: ls-config.c:87
#, c-format
msgid "Licence: "
msgstr ""
#: ls-config.c:102 ls-config.c:126 ls-config.c:149 ls-config.c:172
#, c-format
msgid "ERROR! Incorrect data format.\n"
msgstr ""
#: ls-config.c:110 ls-config.c:133 ls-config.c:156 ls-config.c:179
#: ls-config.c:346 ls-config.c:364 ls-config.c:431 ls-config.c:477
#: ls-config.c:507 ls-config.c:535 ls-config.c:555 ls-config.c:575
#: ls-config.c:595 ls-config.c:602 ls-config.c:616 ls-config.c:662
#: ls-config.c:681 ls-config.c:739
#, c-format
msgid "ERROR! Variable set failed.\n"
msgstr ""
#: ls-config.c:272 ls-config.c:779 ls-config.c:855 ls-config.c:1314
#, c-format
msgid "ERROR! Can't read configuration file.\n"
msgstr ""
#: ls-config.c:279 ls-config.c:785 ls-config.c:1322
#, c-format
msgid "ERROR! Conviguration variable path not given.\n"
msgstr ""
#: ls-config.c:284
#, c-format
msgid "ERROR! Configuration variable value not given.\n"
msgstr ""
#: ls-config.c:303
#, c-format
msgid "ERROR! Inavlid configuration variable path.\n"
msgstr ""
#: ls-config.c:310
#, c-format
msgid ""
"ERROR! New named configuration variable can be added only to group element.\n"
msgstr ""
#: ls-config.c:316 ls-config.c:454 ls-config.c:634 ls-config.c:705
#, c-format
msgid "ERROR! Configuration variable type not given.\n"
msgstr ""
#: ls-config.c:339 ls-config.c:655 ls-config.c:732
#, c-format
msgid "ERROR! Inlegal data type.\n"
msgstr ""
#: ls-config.c:385 ls-config.c:398 ls-config.c:411 ls-config.c:424
#: ls-config.c:438 ls-config.c:528 ls-config.c:548 ls-config.c:568
#: ls-config.c:588 ls-config.c:609
#, c-format
msgid "ERROR! inconsistent value type.\n"
msgstr ""
#: ls-config.c:470
#, c-format
msgid "ERROR! Prohibited data type.\n"
msgstr ""
#: ls-config.c:696 ls-config.c:746
#, c-format
msgid "Added element index: %d\n"
msgstr ""
#: ls-config.c:710
#, c-format
msgid "ERROR! Bad name of configuration variable.\n"
msgstr ""
#: ls-config.c:758 ls-config.c:820
#, c-format
msgid "ERROR! Configuration file write failed.\n"
msgstr ""
#: ls-config.c:792 ls-config.c:867
#, c-format
msgid "ERROR! Given variable path not found.\n"
msgstr ""
#: ls-config.c:799
#, c-format
msgid "ERROR! Can't remove root element.\n"
msgstr ""
#: ls-config.c:806
#, c-format
msgid "ERROR! Can't find parent element.\n"
msgstr ""
#: ls-config.c:813
#, c-format
msgid "ERROR! Variable unset failed.\n"
msgstr ""
#: ls-config.c:1115
#, c-format
msgid "Variable name: %s\n"
msgstr ""
#: ls-config.c:1118
#, c-format
msgid "Variable type: %s\n"
msgstr ""
#: ls-config.c:1121
#, c-format
msgid "Variable value: %s\n"
msgstr ""
#: ls-config.c:1124
#, c-format
msgid "Variable index: %d\n"
msgstr ""
#: ls-config.c:1127
#, c-format
msgid "Variable elements count: %d\n"
msgstr ""
DIRS:=$(shell find . -mindepth 1 -maxdepth 1 -name "*.po" -type f | sed -e 's/\(.*\)\..*/\1/')
PACKAGES = $(DIRS:%=%.lang)
IPACKAGES = $(DIRS:%=%.inst)
CPACKAGES = $(DIRS:%=%.cln)
RPACKAGES = $(DIRS:%=%.remov)
SHELL := /bin/bash
all: packages
packages: $(PACKAGES)
%.lang: %.po
msgmerge -U $< ls-config.pot
mkdir -p ../locale/$*/LC_MESSAGES
msgfmt -c -v -o ../locale/$*/LC_MESSAGES/ls-config.mo $<
install: $(IPACKAGES)
%.inst:
mkdir -p /usr/share/locale/$*/LC_MESSAGES
cp -f ../locale/$*/LC_MESSAGES/ls-config.mo /usr/share/locale/$*/LC_MESSAGES
remove: $(RPACKAGES)
%.remov:
rm -f /usr/share/locale/$*/LC_MESSAGES/ls-config.mo
clean: $(CPACKAGES) cleandir
%.cln:
rm -Rf ../locale/$*
cleandir:
rm -Rf ../locale
\ No newline at end of file
# Language pl-PL translations for PACKAGE package.
# Copyright (C) 2013 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Łukasz A. Grabowski <lucas@lucas.net.pl>, 2013.
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-10-06 19:23+0200\n"
"PO-Revision-Date: 2013-09-09 23:55+0200\n"
"Last-Translator: Łukasz A. Grabowski <lucas@lucas.net.pl>\n"
"Language-Team: Language pl-PL\n"
"Language: pl-PL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ls-config.c:49
#, c-format
msgid "Configuration file handling\n"
msgstr "Obsluga plików konfiguracyjnych\n"
#: ls-config.c:51
#, c-format
msgid "Usage: ls-config [OPTION]\n"
msgstr "Składnia: ls-config [OPCJA]\n"
#: ls-config.c:52
#, c-format
msgid "Reading and writening data from configuration files\n"
msgstr "Odczytuje i zapisuje pliki konfiguracyjne\n"
#: ls-config.c:53
#, c-format
msgid "in libconfig9 format.\n"
msgstr "w formacie libconfig9.\n"
#: ls-config.c:55
#, c-format
msgid "CAUTION: using without given config file are cause error!\n"
msgstr "UWAGA: użycie bez podania pliku konfiguracyjnego powoduje błąd!\n"
#: ls-config.c:57
#, c-format
msgid "Available options:\n"
msgstr "Dostępne opcje:\n"
#: ls-config.c:58
#, c-format
msgid " -f, --file=FILE Configuration file to handle.\n"
msgstr " -f, --file=PLIK Plik konfiguracyjny do obsłużenia.\n"
#: ls-config.c:60
#, c-format
msgid " -s, --set=PATH Set configuration variable of given path.\n"
msgstr ""
" -s, --set=SCIEZKA Ustawia zmienną konfiguracyjną o podanej ścieżce.\n"
#: ls-config.c:61
#, c-format
msgid " -d, --data=DATA Configuration variable value (only with -s)\n"
msgstr ""
" -d, --data=DANE Wartość zmiennej konfiguracyjnej (tylko z -s).\n"
#: ls-config.c:62
#, c-format
msgid " -p, --type=TYPE Configuration value type\n"
msgstr " -p, --type=TYP Typ wartości konfiguracyjnej.\n"
#: ls-config.c:64
#, c-format
msgid " -g, --get=PATH Get configuration variable of given path.\n"
msgstr ""
" -g, --get=SCIEZKA Pobież zmienną konfiguracyjną o podajen ścieżce.\n"
#: ls-config.c:65
#, c-format
msgid " -n, --names Printout variables names.\n"
msgstr " -n, --names Wypisz nazwy zmiennych.\n"
#: ls-config.c:66
#, c-format
msgid " -t, --types Printout variables types.\n"
msgstr " -t, --types Wypisz typy zmiennych.\n"
#: ls-config.c:67
#, c-format
msgid " -v, --values Printout variables values.\n"
msgstr " -v, --values Wypisz wartości zmiennych.\n"
#: ls-config.c:68
#, c-format
msgid " -i, --indexes Printout variables indexes.\n"
msgstr " -i, --indexes Wypisz indexy zmiennych.\n"
#: ls-config.c:69
#, c-format
msgid ""
" -c, --count Printout elements count (only: array, list, "
"group).\n"
msgstr ""
" -c, --count Wypisz liczy elementów (tylko: array, list, "
"group).\n"
#: ls-config.c:70
#, c-format
msgid " -b, --bool-string Printout boolean variables as text.\n"
msgstr " -b, --bool-string Wypisz wartości logiczne tekstowo.\n"
#: ls-config.c:72
#, c-format
msgid " -q, --quiet Quiet output to use in scripts.\n"
msgstr " -q, --quiet Ciche wyjście do użcia w skryptach.\n"
#: ls-config.c:73
#, c-format
msgid " -h, --help Print this help message.\n"
msgstr " -h, --help Wyswietla niniejszy opis\n"
#: ls-config.c:75
#, c-format
msgid "TYPE: Variable types:\n"
msgstr "TYP: Typy zmiennej:\n"
#: ls-config.c:76
#, c-format
msgid " group - variables group,\n"
msgstr " group - grupa zmiennych.\n"
#: ls-config.c:77
#, c-format
msgid " array - array of variables,\n"
msgstr " array - tablica zmiennych (tego samego typu podstawowego),\n"
#: ls-config.c:78
#, c-format
msgid " list - list of variables,\n"
msgstr " list - lista zmiennych,\n"
#: ls-config.c:79
#, c-format
msgid " int - integer number,\n"
msgstr " int - liczba całkowita,\n"
#: ls-config.c:80
#, c-format
msgid " int64 - 64bit integer number,\n"
msgstr " int64 - liczba całkowita 64bitowa,\n"
#: ls-config.c:81
#, c-format
msgid " float - float point number,\n"
msgstr " float - liczba zmiennoprzecinkowa,\n"
#: ls-config.c:82
#, c-format
msgid " bool - boolean value,\n"
msgstr " bool - wartość logiczna,\n"
#: ls-config.c:83
#, c-format
msgid " string - character string.\n"
msgstr " string - łąńcuch znakowy.\n"
#: ls-config.c:87
#, c-format
msgid "Licence: "
msgstr "Licencja: "
#: ls-config.c:102 ls-config.c:126 ls-config.c:149 ls-config.c:172
#, c-format
msgid "ERROR! Incorrect data format.\n"
msgstr "BŁĄD! Błędny format danych.\n"
#: ls-config.c:110 ls-config.c:133 ls-config.c:156 ls-config.c:179
#: ls-config.c:346 ls-config.c:364 ls-config.c:431 ls-config.c:477
#: ls-config.c:507 ls-config.c:535 ls-config.c:555 ls-config.c:575
#: ls-config.c:595 ls-config.c:602 ls-config.c:616 ls-config.c:662
#: ls-config.c:681 ls-config.c:739
#, c-format
msgid "ERROR! Variable set failed.\n"
msgstr "BŁĄD! Nie udało sią ustawić zmiennej.\n"
#: ls-config.c:272 ls-config.c:779 ls-config.c:855 ls-config.c:1314
#, c-format
msgid "ERROR! Can't read configuration file.\n"
msgstr "BŁĄD! Nie można odczytać pliku konfiguracyjnego.\n"
#: ls-config.c:279 ls-config.c:785 ls-config.c:1322
#, c-format
msgid "ERROR! Conviguration variable path not given.\n"
msgstr "BŁĄD! Nie podano ścieżki zmiennej konfiguracyjnej.\n"
#: ls-config.c:284
#, c-format
msgid "ERROR! Configuration variable value not given.\n"
msgstr "BŁĄD! Nie podano wartości zmiennej konfiguracyjnej.\n"
#: ls-config.c:303
#, c-format
msgid "ERROR! Inavlid configuration variable path.\n"
msgstr "BŁĄD! Błędna ścieżka zmiennej konfiguracyjnej.\n"
#: ls-config.c:310
#, c-format
msgid ""
"ERROR! New named configuration variable can be added only to group element.\n"
msgstr ""
"BŁĄD! Nowa nazwana zmienna konfiguracyjne może być dodana tylko do grupy.\n"
#: ls-config.c:316 ls-config.c:454 ls-config.c:634 ls-config.c:705
#, c-format
msgid "ERROR! Configuration variable type not given.\n"
msgstr "BŁĄD! Nie podano typu zmiennej konfiguracyjnej.\n"
#: ls-config.c:339 ls-config.c:655 ls-config.c:732
#, c-format
msgid "ERROR! Inlegal data type.\n"
msgstr "BŁĄD! Niepoprawny typ zmiennej.\n"
#: ls-config.c:385 ls-config.c:398 ls-config.c:411 ls-config.c:424
#: ls-config.c:438 ls-config.c:528 ls-config.c:548 ls-config.c:568
#: ls-config.c:588 ls-config.c:609
#, c-format
msgid "ERROR! inconsistent value type.\n"
msgstr "BŁĄD! niezgodny typ vartości.\n"
#: ls-config.c:470
#, c-format
msgid "ERROR! Prohibited data type.\n"
msgstr "BŁĄD! Zabronionny typ danych.\n"
#: ls-config.c:696 ls-config.c:746
#, c-format
msgid "Added element index: %d\n"
msgstr "Indeks dodanego elementu: %d\n"
#: ls-config.c:710
#, c-format
msgid "ERROR! Bad name of configuration variable.\n"
msgstr "BŁĄD! Błędna nazwa zmiennej konfiguracyjnej.\n"
#: ls-config.c:758 ls-config.c:820
#, c-format
msgid "ERROR! Configuration file write failed.\n"
msgstr "BŁĄD! Nie udało się zapisać pliku konfiguracyjnego.\n"
#: ls-config.c:792 ls-config.c:867
#, c-format
msgid "ERROR! Given variable path not found.\n"
msgstr "BŁĄD! Nie odnaleziono zmiennej konfiguracyjnej o podanej ścieżce.\n"
#: ls-config.c:799
#, c-format
msgid "ERROR! Can't remove root element.\n"
msgstr "BŁĄD! Nie można usunąć głównego elementu.\n"
#: ls-config.c:806
#, c-format
msgid "ERROR! Can't find parent element.\n"
msgstr "BŁĄD! Nie można odnaleźć elementu nadrzędnego.\n"
#: ls-config.c:813
#, c-format
msgid "ERROR! Variable unset failed.\n"
msgstr "BŁĄD! Nie udało sią usunąć zmiennej.\n"
#: ls-config.c:1115
#, c-format
msgid "Variable name: %s\n"
msgstr "Nazwa zmiennej: %s\n"
#: ls-config.c:1118
#, c-format
msgid "Variable type: %s\n"
msgstr "Typ zmiennej: %s\n"
#: ls-config.c:1121
#, c-format
msgid "Variable value: %s\n"
msgstr "Wartość zmiennej: %s\n"
#: ls-config.c:1124
#, c-format
msgid "Variable index: %d\n"
msgstr "Index zmiennej: %d\n"
#: ls-config.c:1127
#, c-format
msgid "Variable elements count: %d\n"
msgstr "Ilość elementów zmiennej: %d\n"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment