Commit Graph

74 Commits (510c69e31197ad36d27cda5d721ee995da7db906)

Author SHA1 Message Date
Christian Boltz 41d5ee4ecb create-alias-domain.php:
- filter available alias and target domains (and print an error message
  if none is available)
- print success message via flash_info, not inside the form and do a
  redirect afterwards. We would have to update the list of domains
  available for aliasing otherwise.
- added vim: settings
 
templates/create-alias-domain.php:
- hide form if no domains are available for aliasing
- move logic of skipping non-available domains to /create-alias-domain.php
- added vim: settings

templates/list-virtual.php:
- show "create alias domain" link (only) if it makes sence (not perfect
  yet, but better than before)
- don't create empty <div> etc. if domain has no mailboxes
- intentionally skipped most whitespace fixes (added a comment instead),
  they would make the patch unreadable

languages/*:
- additional error message for alias domains: 'All domains are already 
  aliased.'


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@422 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 094eb0b243 nb.lang
- translation update by Odd Henriksen (oddhenriksen @SF)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@417 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz f5bef69d3e pl.lang
- updated by Lukasz Wasikowski <lukasz AT wasikowski.net>
  https://sourceforge.net/forum/message.php?msg_id=5100276


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@403 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz d0a9b507a7 bg.lang:
- fixed encoding and some added translations by Georgi Naplatanov (goshoo @SF)
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2018539&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@402 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 14db3cf10b tw.lang
- added some missing strings (mostly related to alias domains)
- removed a superfluous newline at the end


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@395 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 90eeacf274 tw.lang:
- freshly translated by by John Chen (johnpupu @SF), based on cn.lang
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1986622&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@394 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz f9301eb6c5 ru.lang:
- translation update by Pavel Usischev - pusischev
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2003105&group_id=191583

nb.lang:
- enabled SVN keyword expansion


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@393 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 8bf1146dd2 nl.lang:
- updated by Johan Hendriks (sylhouette)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1974742&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@376 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz c67c3cba00 *.lang:
- included all texts for domain aliases to the *.lang files

language-update.sh:
- new parameter --forcepatch
  Similar to --patch, but applies the patch line by line. Useful if 
  --patch fails because of empty lines etc., but much slower.



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@365 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 370e8fef6c inital merge of lenix's patch for domain aliasing; I think list-virtual.php needs some attention, but I've run out of time right now; upgrade.php has been updated to create the tables correctly (tested on pgsql and mysql); functionality or php scripts not tested yet
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@363 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b1b5958afe Norwegian (bokmal) translation - provided by oddhenriksen
Thanks!

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@360 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b89f06a2a8 cs.lang: update from amsys; thanks
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@346 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 1e59f15f96 ja.lang:
- added some missing translation markers


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@331 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz da8dcdd031 nl.lang:
- translation update by Johan Hendriks (sylhouette @SF)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1910916&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@313 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz dd86e330db sv.lang:
- translation update (received via mail)
  thanks to Bachman Kharazmi <bachman AT tor.lindesign.se>


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@312 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 9a083d999f language.php:
- added japanese translation of "japanese" - taken from phpMyAdmin ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@301 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz d5f85a7a34 ja.lang:
- NEW: japanese translation added
  by Daisuke Aoyama <aoyama at peach dot ne dot jp> / daoyama @SF

language.php:
- added ja to list of available languages
- added comment about the content of the language list


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@300 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 33e0c0de50 ru.lang:
- translation update by Pavel Usischev (pusischev) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1869896&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@292 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 8f637b2162 de.lang:
- small fix: Mailboxes -> Mailboxen


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@290 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz f217f0c1bb Summary: Added language selector to login form
functions.inc.php:
- function check_language
  - new optional parameter $use_post (needed by login.php)
  - check for language cookie
  - check for $_POST['lang']
  - removed substr() call because it made pt-br translation unuseable
- new function language_selector
  - returns a HTML dropdown language selector
- new function safecookie
  - similar to safeget, but for cookies

templates/login.php, templates/users_login.php:
- display language selector dropdown

login.php, users/login.php:
- check for selected language
- set cookie if user selected non-default language

languages/language.php: (NEW FILE)
- list of supported languages
- language names taken from phpMyAdmin login form

common.php:
- include languages/language.php
 


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@280 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 40045401d3 users/password.php:
- fixed syntax error
  https://sourceforge.net/tracker/index.php?func=detail&aid=1852533&group_id=191583&atid=937964
- use correct string for "password too short" message 
  (see r270 commit message)

en.lang:
- added usage comment on PALANG['pPasswordTooShort']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@275 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz bbfb953ebe da.lang:
- translation update by jespermeyer - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1851126&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@269 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 282e90691f *.lang:
- added re-translation comments for pSendmail_result_error and 
  pSendmail_result_success

de.lang:
- re-translated the two strings listed above


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@265 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz a2bd792e9e language-update.sh:
- new parameter --addcomment - adds a comment to all *.lang files except en.lang
  Useful if a text has changed and needs to be re-translated.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@264 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz af19e515ed - removed duplicate, unused string $PALANG['pPassword_too_short_error'] again.
Please use the existing string pPasswordTooShort


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@263 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin d688b00197 languages/en.lang: fix string for successful mail sending
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@262 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin b97855ba0b en.lang: add error message if password is too short
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@261 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz e78a64d6ff language-update.sh
- added translation statistics script (new parameter --stats)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@257 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz e74a109dc7 sv.lang:
- more translations by Jan Örnstedt (ornstedt)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1834023&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@245 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 0c69533dd7 da.lang:
- language upate by Jesper R. Meyer (jespermeyer) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1839068&group_id=191583

sv.lang:
- fixed an &Ouml that was accidently inserted by my editor


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@244 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 3412aebb85 it.lang:
- italian language update by Luca Accomazzi (luca AT accomazzi DOT it)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@241 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz ea83fd8b9a fr.lang
- updated by Francois Grange (rumbaya @sf) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1835209&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@239 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz e5bfb81e86 *.lang:
- now that broadcast is in a submenu, there's no need to use "BC" 
  instead of "broadcast".
  Changed in en.lang and all languages where it isn't translated yet.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@237 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 850a449bde sv.lang:
- translation update by Jan Örnstedt (ornstedt) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1834023&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@233 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz fff08905e5 *.lang
- rename $PALANG['pViewlog_action_edit_alias_active']
  to      $PALANG['pViewlog_action_edit_alias_state']
  https://sourceforge.net/tracker/index.php?func=detail&aid=1830376&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@230 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz a3aef5dd40 - added --rename to rename a $PALANG string
- put most code into functions
- lots of whitespace changes and code reordering - this makes the diff 
  nearly useless, sorry


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@229 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin bd3aa027d5 nl.lang: updated by Johan Hendriks (sylhouette) - thank you!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@227 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 0ee06175d4 *.lang:
- checked for untranslated strings and added XXX markers
- added maintainer as a comment (taken from svn log and SF)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@222 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz cf77d1c91e ru.lang:
- language update by Pavel Usischev (pusischev) - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1831782&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@221 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 18cebb5622 fetchmail.php:
- made edit form labels and descriptions translatable. This means that
  $fm_struct no longer holds the labels and descriptions
- fixed HTML error (missing > for </span>
- added some comments to document the main "if" block

fetchmail.tpl:
- changed button order and placement to make <enter> saving the entry
- made save and cancel buttons translatable
  Thanks to Johan for the reminder
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1830326&group_id=191583
- made edit form labels and descriptions translatable. This also means
  reworking of some list(...) = $fm_struct[$row] sections

*.lang:
- added translations for "Save" and "Cancel" buttons
- added translations for edit form labels and descriptions

de.lang:
- translated fetchmail-related texts


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@220 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz c7cd4a8de4 nl.lang
- updated by an anonymous SF user. Whoever you are - thanks!
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1830377&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@216 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 3aa9032cd9 list-virtual.tpl
- made '[and x more...]' translatable

*.lang:
- added 'and_x_more'
- added $Id$ keyword
- enabled expansion of $Id$ and $Rev$


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@208 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 87ed834c9c updated translations:
- ru.lang updated by Pavel Usischev (pusischev)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1828828&group_id=191583
- da.lang updated by Jesper R. Meyer (jespermeyer)
  https://sourceforge.net/tracker/?func=detail&atid=937966&aid=1828916&group_id=191583

Thanks!


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@205 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz f541634e39 - renamed -$PALANG['pViewlog_action_edit_alias_state'] to
$PALANG['pViewlog_action_edit_alias_active'] - fixes undefined
  messages in viewlog.php
- added some new strings to the language files
- pFetchmail_* strings were at the wrong location in several languages
- enforce at least one line of matching context in language-check.sh
  This might cause rejects (especially if there are empty lines next to
  the change), but avoids that strings are inserted at the wrong position



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@195 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 2f25e8bd42 The work of two nights causes a long changelog. Here we go:
fetchmail.php:
- IMPORTANT: fixed typo in database column name. If you have created the
  fetchmail database already, you have to rename the "pool_time" column
  to "poll_time"
- fixed adding of new entries
- don't display status fields (last poll date and result) in edit mode
- validate and quote the GET and POST variables
- show POSTed data again if invalid values were entered (data to display
  in the edit form is passed to fetchmail.tpl in $formvars)
- check results of database operations and display error/success
  messages
- check owner of target mailbox on all operations
- changed password handling: empty means no change (instead of sending
  "******" around)
- reworked and moved around large code portions
- added some TODO notes

fetchmail.tpl:
- use data from $formvars in edit mode instead of parsing the full array
- moved "new entry" below the table
- replaced delete button with delete links
- Note: the boolean fields need testing with PgSQL. Especially test if
  they are displayed as active correctly in list and edit mode!

*.lang:
- added several fetchmail-related strings, more to follow
- added $PALANG['please_keep_this_as_last_entry'] which always has to be
  the last entry in the language files. This solves the problem that
  language-check.sh mixes up the string order when adding strings at the
  end of the language files.
- added vim:ft=php



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@163 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 57589b0442 - updated ru.lang - thanks to Pavel Usischev (pusischev)
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1815063&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@158 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz faa1de78b1 - language-check.sh: add check for duplicated strings
- remove duplicated strings in bg.lang


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@156 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 60b76320e7 - added language-update.sh
Script to update the language files, with lots of tricky bash code ;-)

  MUST be run everytime you add a string to en.lang.

      ./language-update.sh --patch
  should do the job, unless something goes wrong.

      ./language-update.sh --help
  prints all available options.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@155 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 194ae6842d - included missing strings into every language file (in english, with
a '# XXX' comment for translators). This makes translation easier.
- added vim: comment to all language files
- this obsoletes default.lang - removed


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@154 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 5352a5cd49 - fr.lang translation update by Francois Grange - thanks!
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1811005&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@153 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago