Version Description
- fixed issue with watermarking not selected image types on upload
- png transparency in watermarked images is now preserved
- added possibility to disable watermarking feature for particular roles
- user which can only add posts (like 'author') can only add watermark to the images uploaded by him
- introduced placeholders in text watermark
- color picker changed to Iris (integrated with wordpress)
- added information about image status (watermarked or not)
- added 'Easy Watermark' column in media table and metabox on an image editing page
- a lot of 'invisible' changes in the code
Download this release
Release Info
Developer | szaleq |
Plugin | Easy Watermark |
Version | 0.5 |
Comparing to | |
See all releases |
Code changes from version 0.4.4 to 0.5
- lib/EWPlugable.php → classes/class-ew-pluggable.php +1 -1
- lib/EWPlugin.php → classes/class-ew-plugin-core.php +3 -11
- lib/EasyWatermarkPlugin.php → classes/class-ew-plugin.php +269 -49
- lib/EasyWatermarkSettings.php → classes/class-ew-settings.php +40 -5
- index.php +7 -6
- js/{interface.js → easy-watermark.js} +32 -6
- languages/easy-watermark-es_ES.mo +0 -0
- languages/easy-watermark-es_ES.po +262 -68
- languages/easy-watermark-fr_FR.mo +0 -0
- languages/easy-watermark-fr_FR.po +204 -108
- languages/easy-watermark-pl_PL.mo +0 -0
- languages/easy-watermark-pl_PL.po +206 -50
- languages/easy-watermark.pot +195 -50
- lib/EasyWatermark.php +17 -6
- readme.txt +16 -2
- views/about.php +4 -4
- views/easy-watermark-page.php +11 -1
- views/placeholders.php +16 -0
- views/settings-form-general.php +28 -0
- views/settings-form-text.php +66 -11
- views/settings-page.php +1 -1
- views/settings-sidebar.php +5 -0
lib/EWPlugable.php → classes/class-ew-pluggable.php
RENAMED
@@ -8,7 +8,7 @@
|
|
8 |
* See readme.txt for more information.
|
9 |
*/
|
10 |
|
11 |
-
class
|
12 |
{
|
13 |
/**
|
14 |
* Adds wordpress action
|
8 |
* See readme.txt for more information.
|
9 |
*/
|
10 |
|
11 |
+
class EW_Pluggable
|
12 |
{
|
13 |
/**
|
14 |
* Adds wordpress action
|
lib/EWPlugin.php → classes/class-ew-plugin-core.php
RENAMED
@@ -8,7 +8,7 @@
|
|
8 |
* See readme.txt for more information.
|
9 |
*/
|
10 |
|
11 |
-
class
|
12 |
{
|
13 |
/**
|
14 |
* @var string plugin name
|
@@ -23,12 +23,12 @@ class EWPluginCore extends EWPlugable
|
|
23 |
/**
|
24 |
* @var string plugin version
|
25 |
*/
|
26 |
-
protected static $version = '0.
|
27 |
|
28 |
/**
|
29 |
* @var string plugin class name
|
30 |
*/
|
31 |
-
protected static $className = '
|
32 |
|
33 |
/**
|
34 |
* @var string main plugin file
|
@@ -111,12 +111,4 @@ class EWPluginCore extends EWPlugable
|
|
111 |
* @return void
|
112 |
*/
|
113 |
protected static function upgrade($version){}
|
114 |
-
|
115 |
-
public function __call($name, $args){
|
116 |
-
if(method_exists(array(self, $name))){
|
117 |
-
return self::$name();
|
118 |
-
}
|
119 |
-
|
120 |
-
return false;
|
121 |
-
}
|
122 |
}
|
8 |
* See readme.txt for more information.
|
9 |
*/
|
10 |
|
11 |
+
class EW_Plugin_Core extends EW_Pluggable
|
12 |
{
|
13 |
/**
|
14 |
* @var string plugin name
|
23 |
/**
|
24 |
* @var string plugin version
|
25 |
*/
|
26 |
+
protected static $version = '0.5';
|
27 |
|
28 |
/**
|
29 |
* @var string plugin class name
|
30 |
*/
|
31 |
+
protected static $className = 'EW_Plugin';
|
32 |
|
33 |
/**
|
34 |
* @var string main plugin file
|
111 |
* @return void
|
112 |
*/
|
113 |
protected static function upgrade($version){}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
lib/EasyWatermarkPlugin.php → classes/class-ew-plugin.php
RENAMED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* This file is a part of
|
4 |
* @see readme.txt
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Main plugin class
|
9 |
*/
|
10 |
-
class
|
11 |
{
|
12 |
/**
|
13 |
* @var boolean
|
@@ -31,7 +31,7 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
31 |
|
32 |
/**
|
33 |
* Loads textdomain for translations,
|
34 |
-
* adds wordpress actions
|
35 |
*
|
36 |
* @return void
|
37 |
*/
|
@@ -45,7 +45,10 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
45 |
->add_action('admin_notices')
|
46 |
->add_action('admin_head-upload.php', 'add_bulk_action_script')
|
47 |
->add_action('admin_action_ew_add_watermark', 'bulk_action_handler')
|
48 |
-
->add_action('admin_print_scripts', 'easy_watermark_style')
|
|
|
|
|
|
|
49 |
|
50 |
$this->test_GD();
|
51 |
}
|
@@ -79,14 +82,17 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
79 |
* @return void
|
80 |
*/
|
81 |
public function plugin_init(){
|
82 |
-
new
|
83 |
|
84 |
if(isset($_GET['page'])){
|
85 |
if($_GET['page'] == 'easy-watermark-settings' && isset($_GET['tp']) && $_GET['tp'] == 1){
|
86 |
$this->print_text_preview();
|
87 |
}
|
88 |
-
elseif($_GET['page'] == 'easy-watermark' && isset($_GET['_wpnonce'])
|
89 |
-
$
|
|
|
|
|
|
|
90 |
}
|
91 |
}
|
92 |
}
|
@@ -102,7 +108,7 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
102 |
|
103 |
$ew = $this->getEasyWatermark();
|
104 |
if($this->settings['general']['watermark_type'] == '1'){
|
105 |
-
$settings = $this->
|
106 |
|
107 |
$fontFile = EWBASE . EWDS . 'fonts' . EWDS . $settings['font'];
|
108 |
if(file_exists($fontFile))
|
@@ -111,8 +117,10 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
111 |
$ew->textSet($settings);
|
112 |
}
|
113 |
|
114 |
-
if(isset($_GET['text']))
|
115 |
-
$
|
|
|
|
|
116 |
if(isset($_GET['size']))
|
117 |
$ew->textSet('size', $_GET['size']);
|
118 |
if(isset($_GET['angle']))
|
@@ -142,8 +150,15 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
142 |
*/
|
143 |
private function add_watermark(){
|
144 |
if(isset($_GET['attachment_id']) && $this->isGDEnabled()){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
$url = false;
|
146 |
-
if($this->watermark_single($
|
147 |
switch($_GET['r']){
|
148 |
case 'library':
|
149 |
$url = admin_url('upload.php?watermarked=1');
|
@@ -179,6 +194,10 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
179 |
if(isset($_GET['watermarked']) && $_GET['watermarked'] == '1'){
|
180 |
echo '<div class="updated"><p>'.__('Watermark successfully added.', 'easy-watermark').'</p></div>';
|
181 |
}
|
|
|
|
|
|
|
|
|
182 |
elseif(isset($_GET['ew_error'])){
|
183 |
echo '<div class="error"><p>';
|
184 |
switch($_GET['ew_error']):
|
@@ -197,7 +216,7 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
197 |
echo '</p></div>';
|
198 |
}
|
199 |
|
200 |
-
if(!
|
201 |
echo '<div class="error"><p>'.__('Easy Watermark is active, but requires GD library to work. Please enable this extension.', 'easy-watermark').' <a href="http://www.php.net/manual/en/image.setup.php" target="_blank">'.__('Read more', 'easy-watermark').'</p></div>';
|
202 |
}
|
203 |
}
|
@@ -208,7 +227,7 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
208 |
* @return void
|
209 |
*/
|
210 |
public function add_media_page(){
|
211 |
-
if($this->isGDEnabled())
|
212 |
add_media_page( 'Easy Watermark', 'Easy Watermark', 'upload_files', 'easy-watermark', array($this, 'easy_watermark'));
|
213 |
}
|
214 |
|
@@ -218,7 +237,8 @@ class EasyWatermarkPlugin extends ewPluginCore
|
|
218 |
* @return void
|
219 |
*/
|
220 |
function add_bulk_action_script() {
|
221 |
-
|
|
|
222 |
$text = __('Add Watermark', 'easy-watermark');
|
223 |
echo <<<EOD
|
224 |
<script type="text/javascript">
|
@@ -237,9 +257,16 @@ EOD;
|
|
237 |
* @return array
|
238 |
*/
|
239 |
public function add_media_row_action($actions, $post, $detached){
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
// Add link if it's supported image type
|
242 |
-
$actions['add_watermark'] = '<a href="' . wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post->ID.'&r=library')) . '">'.__('Add
|
243 |
}
|
244 |
|
245 |
return $actions;
|
@@ -255,7 +282,7 @@ EOD;
|
|
255 |
// Add link if it's supported image type
|
256 |
$form_fields = array_reverse($form_fields);
|
257 |
$form_fields['easy-watermark'] = array(
|
258 |
-
'label' => '<a href="'.wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post->ID.'&r=post')).'" class="button-secondary">'.__('Add watermark', 'easy-watermark').'</a>',
|
259 |
'input' => 'html',
|
260 |
'html' => ' '
|
261 |
);
|
@@ -268,7 +295,7 @@ EOD;
|
|
268 |
* Handles the ew_add_watermark bulk action
|
269 |
* Performs watermarking selected images
|
270 |
*
|
271 |
-
* @uses
|
272 |
* @return void
|
273 |
*/
|
274 |
public function bulk_action_handler(){
|
@@ -328,11 +355,13 @@ EOD;
|
|
328 |
*
|
329 |
* @param array
|
330 |
* @param integer
|
331 |
-
* @return
|
332 |
*/
|
333 |
public function wp_generate_attachment_metadata($metadata, $id){
|
334 |
-
if($this->watermark_uploaded && $this->uploaded_id == $id
|
335 |
-
$this->
|
|
|
|
|
336 |
|
337 |
$this->watermark_uploaded = false;
|
338 |
$this->uploaded_id = null;
|
@@ -345,14 +374,18 @@ EOD;
|
|
345 |
* Performs the action of a single image watermarking
|
346 |
*
|
347 |
* @uses self::create_watermark
|
|
|
|
|
|
|
348 |
* @return boolean
|
349 |
*/
|
350 |
-
private function watermark_single($
|
351 |
if($this->isGDEnabled()) :
|
352 |
|
353 |
if($this->settings['image']['watermark_path'] != '' || $this->settings['text']['text'] != null){
|
354 |
-
$post
|
355 |
-
|
|
|
356 |
if(!in_array($post->post_mime_type, $this->allowedMime)){
|
357 |
$this->error = 1;
|
358 |
return false;
|
@@ -383,18 +416,26 @@ EOD;
|
|
383 |
global $wpdb;
|
384 |
|
385 |
$images = $wpdb->get_results("
|
386 |
-
SELECT ID, post_mime_type
|
387 |
FROM $wpdb->posts
|
388 |
WHERE post_type = 'attachment'
|
389 |
AND post_mime_type LIKE 'image/%'
|
390 |
");
|
391 |
|
392 |
$output = '';
|
|
|
393 |
if($images && ($this->settings['image']['watermark_path'] != '' || $this->settings['text']['text'])){
|
394 |
foreach($images as $img){
|
395 |
$filepath = get_attached_file($img->ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
if(!in_array($img->post_mime_type, $this->allowedMime)){
|
397 |
$output .= sprintf(__('Not supported mime type of %s. Skipping...', 'easy-watermark'), '<strong>'.$filepath.'</strong>').'<br/>';
|
|
|
398 |
continue;
|
399 |
}
|
400 |
|
@@ -426,27 +467,35 @@ EOD;
|
|
426 |
$meta = $meta[0];
|
427 |
}
|
428 |
|
429 |
-
$sizes = $meta['sizes'];
|
430 |
-
$sizes['full'] = array(
|
431 |
-
'file' => $meta['file'],
|
432 |
-
'mime-type' => $post->post_mime_type
|
433 |
-
);
|
434 |
-
|
435 |
$filepath = get_attached_file($post->ID);
|
436 |
$filebasename = wp_basename($meta['file']);
|
437 |
|
438 |
-
$
|
439 |
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
}
|
|
|
|
|
447 |
}
|
448 |
|
449 |
-
return
|
450 |
}
|
451 |
|
452 |
/**
|
@@ -457,9 +506,8 @@ EOD;
|
|
457 |
* @return boolean
|
458 |
*/
|
459 |
private function watermark_image($imageFile, $imageType){
|
460 |
-
if($this->isGDEnabled())
|
461 |
|
462 |
-
if(empty($this->settings['image']['watermark_path']) || $this->settings['image']['watermark_path'] != $imageFile){
|
463 |
$ew = $this->getEasyWatermark();
|
464 |
$ew->setImagePath($imageFile)
|
465 |
->setImageMime($imageType)
|
@@ -474,11 +522,8 @@ EOD;
|
|
474 |
$ew->clean();
|
475 |
return true;
|
476 |
}
|
477 |
-
else {
|
478 |
-
return false;
|
479 |
-
}
|
480 |
|
481 |
-
|
482 |
}
|
483 |
|
484 |
/**
|
@@ -494,7 +539,7 @@ EOD;
|
|
494 |
public function getEasyWatermark(){
|
495 |
if(!($this->ew instanceof EasyWatermark) && $this->isGDEnabled()){
|
496 |
$imageSettings = $this->settings['image'];
|
497 |
-
$textSettings = $this->
|
498 |
$this->ew = new EasyWatermark();
|
499 |
$this->ew->setJpegQuality($this->settings['general']['jpg_quality']);
|
500 |
|
@@ -521,6 +566,11 @@ EOD;
|
|
521 |
include EWVIEWS . EWDS . 'easy-watermark-page.php';
|
522 |
}
|
523 |
|
|
|
|
|
|
|
|
|
|
|
524 |
public function easy_watermark_style(){
|
525 |
if(get_current_screen()->id == 'media_page_easy-watermark') {
|
526 |
echo '<style type="text/css" media="screen">
|
@@ -529,13 +579,94 @@ echo '<style type="text/css" media="screen">
|
|
529 |
}
|
530 |
}
|
531 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
/**
|
533 |
* Method run when activating plugin
|
534 |
*
|
535 |
* @return void
|
536 |
*/
|
537 |
public static function install($settings = null){
|
538 |
-
if(empty($settings)) $settings =
|
539 |
|
540 |
foreach($settings as $sectionName => $section){
|
541 |
update_option(self::$pluginSlug.'-settings-'.$sectionName, $section);
|
@@ -549,7 +680,7 @@ echo '<style type="text/css" media="screen">
|
|
549 |
* @return void
|
550 |
*/
|
551 |
public static function uninstall(){
|
552 |
-
$settings =
|
553 |
|
554 |
foreach($settings as $sectionName => $section){
|
555 |
delete_option(self::$pluginSlug.'-settings-'.$sectionName);
|
@@ -565,7 +696,7 @@ echo '<style type="text/css" media="screen">
|
|
565 |
* @return void
|
566 |
*/
|
567 |
protected static function upgrade($version){
|
568 |
-
$defaults =
|
569 |
|
570 |
if(version_compare($version, '0.1.1', '>')){
|
571 |
$settings['general'] = get_option(self::$pluginSlug.'-settings-general');
|
@@ -707,4 +838,93 @@ echo '<style type="text/css" media="screen">
|
|
707 |
public function setSettings($settings){
|
708 |
$this->settings = $settings;
|
709 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
710 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* This file is a part of Easy Watermark Wordpress plugin.
|
4 |
* @see readme.txt
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Main plugin class
|
9 |
*/
|
10 |
+
class EW_Plugin extends EW_Plugin_Core
|
11 |
{
|
12 |
/**
|
13 |
* @var boolean
|
31 |
|
32 |
/**
|
33 |
* Loads textdomain for translations,
|
34 |
+
* adds wordpress actions
|
35 |
*
|
36 |
* @return void
|
37 |
*/
|
45 |
->add_action('admin_notices')
|
46 |
->add_action('admin_head-upload.php', 'add_bulk_action_script')
|
47 |
->add_action('admin_action_ew_add_watermark', 'bulk_action_handler')
|
48 |
+
->add_action('admin_print_scripts', 'easy_watermark_style')
|
49 |
+
->add_action('manage_media_columns', 'add_media_column')
|
50 |
+
->add_action('manage_media_custom_column', null, 10, 2)
|
51 |
+
->add_action('add_meta_boxes');
|
52 |
|
53 |
$this->test_GD();
|
54 |
}
|
82 |
* @return void
|
83 |
*/
|
84 |
public function plugin_init(){
|
85 |
+
new EW_Settings($this);
|
86 |
|
87 |
if(isset($_GET['page'])){
|
88 |
if($_GET['page'] == 'easy-watermark-settings' && isset($_GET['tp']) && $_GET['tp'] == 1){
|
89 |
$this->print_text_preview();
|
90 |
}
|
91 |
+
elseif($_GET['page'] == 'easy-watermark' && isset($_GET['_wpnonce'])){
|
92 |
+
if(wp_verify_nonce($_GET['_wpnonce'], 'ew_add_watermark'))
|
93 |
+
$this->add_watermark();
|
94 |
+
if(wp_verify_nonce($_GET['_wpnonce'], 'ew_mark'))
|
95 |
+
$this->mark_image();
|
96 |
}
|
97 |
}
|
98 |
}
|
108 |
|
109 |
$ew = $this->getEasyWatermark();
|
110 |
if($this->settings['general']['watermark_type'] == '1'){
|
111 |
+
$settings = $this->getTextSettings();
|
112 |
|
113 |
$fontFile = EWBASE . EWDS . 'fonts' . EWDS . $settings['font'];
|
114 |
if(file_exists($fontFile))
|
117 |
$ew->textSet($settings);
|
118 |
}
|
119 |
|
120 |
+
if(isset($_GET['text'])){
|
121 |
+
$text = $this->parseText($_GET['text']);
|
122 |
+
$ew->textSet('text', $text);
|
123 |
+
}
|
124 |
if(isset($_GET['size']))
|
125 |
$ew->textSet('size', $_GET['size']);
|
126 |
if(isset($_GET['angle']))
|
150 |
*/
|
151 |
private function add_watermark(){
|
152 |
if(isset($_GET['attachment_id']) && $this->isGDEnabled()){
|
153 |
+
$post = get_post((int) $_GET['attachment_id']);
|
154 |
+
$roles = $this->getAllowedRoles();
|
155 |
+
|
156 |
+
if(!$this->checkUserRole() || !(current_user_can('edit_others_posts') || $post->post_author == wp_get_current_user()->ID))
|
157 |
+
// User doesn't have a premission to add watermark, he was not able to click the link!
|
158 |
+
wp_die( __( 'Cheatin’ uh?' ) );
|
159 |
+
|
160 |
$url = false;
|
161 |
+
if($this->watermark_single($post)){
|
162 |
switch($_GET['r']){
|
163 |
case 'library':
|
164 |
$url = admin_url('upload.php?watermarked=1');
|
194 |
if(isset($_GET['watermarked']) && $_GET['watermarked'] == '1'){
|
195 |
echo '<div class="updated"><p>'.__('Watermark successfully added.', 'easy-watermark').'</p></div>';
|
196 |
}
|
197 |
+
elseif(isset($_GET['marked'])){
|
198 |
+
$marked = $_GET['marked'] == 1 ? __('watermarked', 'easy-watermark') : __('not watermarked', 'easy-watermark');
|
199 |
+
echo '<div class="updated"><p>'.sprintf(__('An Image has been marked as %s.', 'easy-watermark'), $marked).'</p></div>';
|
200 |
+
}
|
201 |
elseif(isset($_GET['ew_error'])){
|
202 |
echo '<div class="error"><p>';
|
203 |
switch($_GET['ew_error']):
|
216 |
echo '</p></div>';
|
217 |
}
|
218 |
|
219 |
+
if(!self::isGDEnabled() && get_current_screen()->id == 'plugins'){
|
220 |
echo '<div class="error"><p>'.__('Easy Watermark is active, but requires GD library to work. Please enable this extension.', 'easy-watermark').' <a href="http://www.php.net/manual/en/image.setup.php" target="_blank">'.__('Read more', 'easy-watermark').'</p></div>';
|
221 |
}
|
222 |
}
|
227 |
* @return void
|
228 |
*/
|
229 |
public function add_media_page(){
|
230 |
+
if($this->isGDEnabled() && $this->checkUserRole())
|
231 |
add_media_page( 'Easy Watermark', 'Easy Watermark', 'upload_files', 'easy-watermark', array($this, 'easy_watermark'));
|
232 |
}
|
233 |
|
237 |
* @return void
|
238 |
*/
|
239 |
function add_bulk_action_script() {
|
240 |
+
$roles = $this->settings['general']['user_roles'];
|
241 |
+
if($this->isGDEnabled() && $this->checkUserRole()){
|
242 |
$text = __('Add Watermark', 'easy-watermark');
|
243 |
echo <<<EOD
|
244 |
<script type="text/javascript">
|
257 |
* @return array
|
258 |
*/
|
259 |
public function add_media_row_action($actions, $post, $detached){
|
260 |
+
$roles = $this->settings['general']['user_roles'];
|
261 |
+
if($this->isGDEnabled() && $this->checkUserRole()
|
262 |
+
&& in_array($post->post_mime_type, $this->allowedMime)
|
263 |
+
&& get_attached_file($post->ID) != $this->settings['image']['watermark_path']
|
264 |
+
&& (current_user_can('edit_others_posts') || $post->post_author == wp_get_current_user()->ID)){
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
// Add link if it's supported image type
|
269 |
+
$actions['add_watermark'] = '<a href="' . wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post->ID.'&r=library'), 'ew_add_watermark') . '">'.__('Add Watermark', 'easy-watermark').'</a>';
|
270 |
}
|
271 |
|
272 |
return $actions;
|
282 |
// Add link if it's supported image type
|
283 |
$form_fields = array_reverse($form_fields);
|
284 |
$form_fields['easy-watermark'] = array(
|
285 |
+
'label' => '<a href="'.wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post->ID.'&r=post'), 'ew_add_watermark').'" class="button-secondary">'.__('Add watermark', 'easy-watermark').'</a>',
|
286 |
'input' => 'html',
|
287 |
'html' => ' '
|
288 |
);
|
295 |
* Handles the ew_add_watermark bulk action
|
296 |
* Performs watermarking selected images
|
297 |
*
|
298 |
+
* @uses self::watermark_single
|
299 |
* @return void
|
300 |
*/
|
301 |
public function bulk_action_handler(){
|
355 |
*
|
356 |
* @param array
|
357 |
* @param integer
|
358 |
+
* @return array
|
359 |
*/
|
360 |
public function wp_generate_attachment_metadata($metadata, $id){
|
361 |
+
if($this->watermark_uploaded && $this->uploaded_id == $id
|
362 |
+
&& ($this->settings['general']['auto_add_perm'] == '1' || $this->checkUserRole())){
|
363 |
+
|
364 |
+
$this->watermark_single($id, true, $metadata);
|
365 |
|
366 |
$this->watermark_uploaded = false;
|
367 |
$this->uploaded_id = null;
|
374 |
* Performs the action of a single image watermarking
|
375 |
*
|
376 |
* @uses self::create_watermark
|
377 |
+
* @param integer image id
|
378 |
+
* @param boolean whether to check mime if it's selected to auto watermarking
|
379 |
+
* @param array image meta
|
380 |
* @return boolean
|
381 |
*/
|
382 |
+
private function watermark_single($post, $checkMime = false, $meta = array()){
|
383 |
if($this->isGDEnabled()) :
|
384 |
|
385 |
if($this->settings['image']['watermark_path'] != '' || $this->settings['text']['text'] != null){
|
386 |
+
if(is_numeric($post))
|
387 |
+
$post = get_post($post);
|
388 |
+
$filepath = get_attached_file($post->ID);
|
389 |
if(!in_array($post->post_mime_type, $this->allowedMime)){
|
390 |
$this->error = 1;
|
391 |
return false;
|
416 |
global $wpdb;
|
417 |
|
418 |
$images = $wpdb->get_results("
|
419 |
+
SELECT ID, post_mime_type, post_author as author
|
420 |
FROM $wpdb->posts
|
421 |
WHERE post_type = 'attachment'
|
422 |
AND post_mime_type LIKE 'image/%'
|
423 |
");
|
424 |
|
425 |
$output = '';
|
426 |
+
$skipped = 0;
|
427 |
if($images && ($this->settings['image']['watermark_path'] != '' || $this->settings['text']['text'])){
|
428 |
foreach($images as $img){
|
429 |
$filepath = get_attached_file($img->ID);
|
430 |
+
if(!current_user_can('edit_others_posts') && wp_get_current_user()->ID != $img->author){
|
431 |
+
// No permission to edit this image
|
432 |
+
$output .= sprintf(__('No permission to edit file %s. Skipping...', 'easy-watermark'), '<strong>'.$filepath.'</strong>').'<br/>';
|
433 |
+
$skipped++;
|
434 |
+
continue;
|
435 |
+
}
|
436 |
if(!in_array($img->post_mime_type, $this->allowedMime)){
|
437 |
$output .= sprintf(__('Not supported mime type of %s. Skipping...', 'easy-watermark'), '<strong>'.$filepath.'</strong>').'<br/>';
|
438 |
+
$skipped++;
|
439 |
continue;
|
440 |
}
|
441 |
|
467 |
$meta = $meta[0];
|
468 |
}
|
469 |
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
$filepath = get_attached_file($post->ID);
|
471 |
$filebasename = wp_basename($meta['file']);
|
472 |
|
473 |
+
if($this->settings['image']['watermark_path'] != $filepath){
|
474 |
|
475 |
+
$sizes = $meta['sizes'];
|
476 |
+
$sizes['full'] = array(
|
477 |
+
'file' => $meta['file'],
|
478 |
+
'mime-type' => $post->post_mime_type
|
479 |
+
);
|
480 |
+
|
481 |
+
$allowedSizes = $this->settings['general']['image_sizes'];
|
482 |
+
|
483 |
+
$return = true;
|
484 |
+
foreach($sizes as $size => $img){
|
485 |
+
if(in_array($size, $allowedSizes)){
|
486 |
+
$imgFile = str_replace($filebasename, wp_basename($img['file']), $filepath);
|
487 |
+
if(!$this->watermark_image($imgFile, $img['mime-type']))
|
488 |
+
$return = false;
|
489 |
+
}
|
490 |
+
}
|
491 |
+
if($return){
|
492 |
+
update_post_meta($post->ID, '_ew_watermarked', '1');
|
493 |
}
|
494 |
+
|
495 |
+
return $return;
|
496 |
}
|
497 |
|
498 |
+
return false;
|
499 |
}
|
500 |
|
501 |
/**
|
506 |
* @return boolean
|
507 |
*/
|
508 |
private function watermark_image($imageFile, $imageType){
|
509 |
+
if($this->isGDEnabled()){
|
510 |
|
|
|
511 |
$ew = $this->getEasyWatermark();
|
512 |
$ew->setImagePath($imageFile)
|
513 |
->setImageMime($imageType)
|
522 |
$ew->clean();
|
523 |
return true;
|
524 |
}
|
|
|
|
|
|
|
525 |
|
526 |
+
return false;
|
527 |
}
|
528 |
|
529 |
/**
|
539 |
public function getEasyWatermark(){
|
540 |
if(!($this->ew instanceof EasyWatermark) && $this->isGDEnabled()){
|
541 |
$imageSettings = $this->settings['image'];
|
542 |
+
$textSettings = $this->getTextSettings();
|
543 |
$this->ew = new EasyWatermark();
|
544 |
$this->ew->setJpegQuality($this->settings['general']['jpg_quality']);
|
545 |
|
566 |
include EWVIEWS . EWDS . 'easy-watermark-page.php';
|
567 |
}
|
568 |
|
569 |
+
/**
|
570 |
+
* Prints style for admin page
|
571 |
+
*
|
572 |
+
* @return void
|
573 |
+
*/
|
574 |
public function easy_watermark_style(){
|
575 |
if(get_current_screen()->id == 'media_page_easy-watermark') {
|
576 |
echo '<style type="text/css" media="screen">
|
579 |
}
|
580 |
}
|
581 |
|
582 |
+
/**
|
583 |
+
* Marks image as watermarked or not
|
584 |
+
*
|
585 |
+
* @return void
|
586 |
+
*/
|
587 |
+
private function mark_image(){
|
588 |
+
$id = (int) $_GET['attachment_id'];
|
589 |
+
$mark = (int) $_GET['mark'];
|
590 |
+
$page = $_GET['r'];
|
591 |
+
|
592 |
+
update_post_meta($id, '_ew_watermarked', $mark);
|
593 |
+
|
594 |
+
$url = $page == 'library' ? admin_url('upload.php?marked='.$mark) : admin_url('post.php?post='.$id.'&action=edit&marked='.$mark);
|
595 |
+
|
596 |
+
wp_redirect($url);
|
597 |
+
exit;
|
598 |
+
}
|
599 |
+
|
600 |
+
/**
|
601 |
+
* Adds Easy Watermark column in media library
|
602 |
+
*
|
603 |
+
* @param array
|
604 |
+
* @return array
|
605 |
+
*/
|
606 |
+
public function add_media_column($columns){
|
607 |
+
|
608 |
+
$columns['ew-status'] = 'Easy Watermark';
|
609 |
+
|
610 |
+
return $columns;
|
611 |
+
}
|
612 |
+
|
613 |
+
/**
|
614 |
+
* Prints the content of Easy Watermark custom column
|
615 |
+
*
|
616 |
+
* @param array
|
617 |
+
* @return array
|
618 |
+
*/
|
619 |
+
public function manage_media_custom_column($column_name, $post_id){
|
620 |
+
if($column_name == 'ew-status'){
|
621 |
+
$this->display_column_and_metabox($post_id);
|
622 |
+
}
|
623 |
+
}
|
624 |
+
|
625 |
+
public function add_meta_boxes(){
|
626 |
+
add_meta_box(
|
627 |
+
'easy_watermark',
|
628 |
+
__( 'Easy Watermark', 'easy-watermark' ),
|
629 |
+
array($this, 'media_metabox'),
|
630 |
+
'attachment', 'side', 'core'
|
631 |
+
);
|
632 |
+
}
|
633 |
+
|
634 |
+
public function media_metabox(){
|
635 |
+
global $post;
|
636 |
+
|
637 |
+
$this->display_column_and_metabox($post->ID, 'post');
|
638 |
+
}
|
639 |
+
|
640 |
+
private function display_column_and_metabox($post_id, $page = 'library'){
|
641 |
+
$watermarked = get_post_meta($post_id, '_ew_watermarked', true);
|
642 |
+
$status = $watermarked == '1' ? __('watermarked', 'easy-watermark') : __('not watermarked', 'easy-watermark');
|
643 |
+
echo __('Status', 'easy-watermark') . ': <strong>' . $status . '</strong><br/>';
|
644 |
+
|
645 |
+
global $post;
|
646 |
+
if(current_user_can('edit_others_posts') || $post->post_author == wp_get_current_user()->ID){
|
647 |
+
$mark = $watermarked == '1' ? '0' : '1';
|
648 |
+
|
649 |
+
$link_text = $watermarked == '1' ?
|
650 |
+
__('mark as not watermarked', 'easy-watermark') : __('mark as watermarked', 'easy-watermark');
|
651 |
+
|
652 |
+
if($page == 'post'){
|
653 |
+
$class = ' class="button-secondary"';
|
654 |
+
}
|
655 |
+
else {
|
656 |
+
$class = null;
|
657 |
+
}
|
658 |
+
|
659 |
+
echo '<a href="'.wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post_id.'&r='.$page.'&mark='.$mark), 'ew_mark').'">' . $link_text . '</a><br/><br/><strong><a href="' . wp_nonce_url(admin_url('upload.php?page=easy-watermark&attachment_id='.$post_id.'&r='.$page), 'ew_add_watermark') . '"'.$class.'>'.__('Add Watermark', 'easy-watermark').'</a></strong>';
|
660 |
+
}
|
661 |
+
}
|
662 |
+
|
663 |
/**
|
664 |
* Method run when activating plugin
|
665 |
*
|
666 |
* @return void
|
667 |
*/
|
668 |
public static function install($settings = null){
|
669 |
+
if(empty($settings)) $settings = EW_Settings::getDefaults();
|
670 |
|
671 |
foreach($settings as $sectionName => $section){
|
672 |
update_option(self::$pluginSlug.'-settings-'.$sectionName, $section);
|
680 |
* @return void
|
681 |
*/
|
682 |
public static function uninstall(){
|
683 |
+
$settings = EW_Settings::getDefaults();
|
684 |
|
685 |
foreach($settings as $sectionName => $section){
|
686 |
delete_option(self::$pluginSlug.'-settings-'.$sectionName);
|
696 |
* @return void
|
697 |
*/
|
698 |
protected static function upgrade($version){
|
699 |
+
$defaults = EW_Settings::getDefaults();
|
700 |
|
701 |
if(version_compare($version, '0.1.1', '>')){
|
702 |
$settings['general'] = get_option(self::$pluginSlug.'-settings-general');
|
838 |
public function setSettings($settings){
|
839 |
$this->settings = $settings;
|
840 |
}
|
841 |
+
|
842 |
+
public function checkUserRole($user_id = null){
|
843 |
+
if(is_numeric($user_id)){
|
844 |
+
$user = get_userdata($user_id);
|
845 |
+
}
|
846 |
+
else {
|
847 |
+
$user = wp_get_current_user();
|
848 |
+
}
|
849 |
+
|
850 |
+
$result = false;
|
851 |
+
|
852 |
+
$roles = $this->getAllowedRoles();
|
853 |
+
|
854 |
+
if(!empty($user)){
|
855 |
+
if(is_string($user->roles) && isset($roles[$user->roles]) && ((int) $roles[$user->roles] == 1))
|
856 |
+
$result = true;
|
857 |
+
else
|
858 |
+
foreach($roles as $role => $allowed){
|
859 |
+
if(in_array($role, $user->roles) && ((int) $allowed == 1)){
|
860 |
+
$result = true;
|
861 |
+
break;
|
862 |
+
}
|
863 |
+
}
|
864 |
+
}
|
865 |
+
|
866 |
+
return $result;
|
867 |
+
}
|
868 |
+
|
869 |
+
private function getAllowedRoles(){
|
870 |
+
$roles = $this->settings['general']['allowed_roles'];
|
871 |
+
|
872 |
+
$roles['administrator'] = 1;
|
873 |
+
|
874 |
+
return $roles;
|
875 |
+
}
|
876 |
+
|
877 |
+
private function getTextSettings(){
|
878 |
+
$settings = $this->settings['text'];
|
879 |
+
|
880 |
+
$settings['text'] = $this->parseText($settings['text']);
|
881 |
+
|
882 |
+
return $settings;
|
883 |
+
}
|
884 |
+
|
885 |
+
private function parseText($text){
|
886 |
+
$user = wp_get_current_user();
|
887 |
+
$date = !empty($this->settings['general']['date_format']) ? $this->settings['general']['date_format'] : get_option('date_format');
|
888 |
+
$time = !empty($this->settings['general']['time_format']) ? $this->settings['general']['time_format'] : get_option('time_format');
|
889 |
+
|
890 |
+
$placeholders = array(
|
891 |
+
'%user%',
|
892 |
+
'%user_name%',
|
893 |
+
'%user_email%',
|
894 |
+
'%admin_email%',
|
895 |
+
'%blog_name%',
|
896 |
+
'%blog_url%',
|
897 |
+
'%date%',
|
898 |
+
'%time%',
|
899 |
+
);
|
900 |
+
|
901 |
+
$replacements = array(
|
902 |
+
$user->user_login,
|
903 |
+
$user->display_name,
|
904 |
+
$user->user_email,
|
905 |
+
get_bloginfo('admin_email'),
|
906 |
+
get_bloginfo('name'),
|
907 |
+
home_url(),
|
908 |
+
date($date),
|
909 |
+
date($time),
|
910 |
+
);
|
911 |
+
|
912 |
+
return str_replace($placeholders, $replacements, $text);
|
913 |
+
}
|
914 |
+
|
915 |
+
public function getRoles(){
|
916 |
+
$allRoles = get_editable_roles();
|
917 |
+
|
918 |
+
$roles = array();
|
919 |
+
foreach($allRoles as $role => $details){
|
920 |
+
if($role == 'administrator')
|
921 |
+
continue;
|
922 |
+
|
923 |
+
if(isset($details['capabilities']['upload_files']) && $details['capabilities']['upload_files'] == true){
|
924 |
+
$roles[$role] = $details['name'];
|
925 |
+
}
|
926 |
+
}
|
927 |
+
|
928 |
+
return $roles;
|
929 |
+
}
|
930 |
}
|
lib/EasyWatermarkSettings.php → classes/class-ew-settings.php
RENAMED
@@ -4,7 +4,7 @@
|
|
4 |
* @see readme.txt
|
5 |
*/
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
private $fonts = array(
|
10 |
'Arial.ttf' => 'Arial',
|
@@ -22,6 +22,10 @@ class EasyWatermarkSettings
|
|
22 |
private static $defaults = array(
|
23 |
'general' => array(
|
24 |
'auto_add' => '1',
|
|
|
|
|
|
|
|
|
25 |
'image_types' => array('image/jpeg', 'image/png', 'image/gif'),
|
26 |
'image_sizes' => array('medium', 'large', 'full'),
|
27 |
'watermark_type' => 3,
|
@@ -87,14 +91,21 @@ class EasyWatermarkSettings
|
|
87 |
|
88 |
foreach($this->tabs as $name => $caption){
|
89 |
$section = get_option($plugin->getSlug() . '-settings-' . $name);
|
90 |
-
$this->settings[$name] = array_merge(self::$defaults[$name], $section);
|
91 |
}
|
92 |
|
93 |
$this->plugin = $plugin;
|
94 |
|
|
|
|
|
95 |
$plugin->setSettings($this->settings);
|
96 |
}
|
97 |
|
|
|
|
|
|
|
|
|
|
|
98 |
public function get($key){
|
99 |
return $this->settings[$key];
|
100 |
}
|
@@ -118,6 +129,10 @@ class EasyWatermarkSettings
|
|
118 |
$input['auto_add'] = false;
|
119 |
}
|
120 |
|
|
|
|
|
|
|
|
|
121 |
if(!isset($input['image_types'])){
|
122 |
$input['image_types'] = array();
|
123 |
}
|
@@ -247,8 +262,9 @@ class EasyWatermarkSettings
|
|
247 |
}
|
248 |
|
249 |
public function settings_page(){
|
250 |
-
wp_enqueue_script('ew-colorpicker', plugin_dir_url(EWBASE . '/index.php') . 'js/colorpicker.js');
|
251 |
-
wp_enqueue_script('
|
|
|
252 |
wp_enqueue_style('ew-style', plugin_dir_url(EWBASE . '/index.php') . 'css/style.css');
|
253 |
wp_enqueue_style('ew-cp-style', plugin_dir_url(EWBASE . '/index.php') . 'css/colorpicker.css');
|
254 |
if(function_exists('wp_enqueue_media')){
|
@@ -271,6 +287,25 @@ class EasyWatermarkSettings
|
|
271 |
include EWVIEWS . EWDS . 'settings-page.php';
|
272 |
}
|
273 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
function settings_link($links, $file){
|
275 |
static $this_plugin;
|
276 |
|
@@ -288,7 +323,7 @@ class EasyWatermarkSettings
|
|
288 |
static $this_plugin;
|
289 |
|
290 |
if (!$this_plugin) {
|
291 |
-
$this_plugin = plugin_basename(EWBASE . EWDS . '
|
292 |
}
|
293 |
if ($file == $this_plugin) {
|
294 |
$donate_link = '<a href="'.$this->donationLink.'">'.__('Donate', 'easy-watermark').'</a>';
|
4 |
* @see readme.txt
|
5 |
*/
|
6 |
|
7 |
+
class EW_Settings
|
8 |
{
|
9 |
private $fonts = array(
|
10 |
'Arial.ttf' => 'Arial',
|
22 |
private static $defaults = array(
|
23 |
'general' => array(
|
24 |
'auto_add' => '1',
|
25 |
+
'auto_add_perm' => '1',
|
26 |
+
'allowed_roles' => array('author' => 1, 'editor' => 2),
|
27 |
+
'date_format' => null,
|
28 |
+
'time_format' => null,
|
29 |
'image_types' => array('image/jpeg', 'image/png', 'image/gif'),
|
30 |
'image_sizes' => array('medium', 'large', 'full'),
|
31 |
'watermark_type' => 3,
|
91 |
|
92 |
foreach($this->tabs as $name => $caption){
|
93 |
$section = get_option($plugin->getSlug() . '-settings-' . $name);
|
94 |
+
$this->settings[$name] = array_merge(self::$defaults[$name], (array) $section);
|
95 |
}
|
96 |
|
97 |
$this->plugin = $plugin;
|
98 |
|
99 |
+
$this->checkWatermarkImage();
|
100 |
+
|
101 |
$plugin->setSettings($this->settings);
|
102 |
}
|
103 |
|
104 |
+
public function set($key, $val){
|
105 |
+
$this->settings[$key] = $val;
|
106 |
+
update_option($this->plugin->getSlug() . '-settings-' . $key, $val);
|
107 |
+
}
|
108 |
+
|
109 |
public function get($key){
|
110 |
return $this->settings[$key];
|
111 |
}
|
129 |
$input['auto_add'] = false;
|
130 |
}
|
131 |
|
132 |
+
if(!isset($input['auto_add_perm']) || $input['auto_add_perm'] !== '1'){
|
133 |
+
$input['auto_add_perm'] = false;
|
134 |
+
}
|
135 |
+
|
136 |
if(!isset($input['image_types'])){
|
137 |
$input['image_types'] = array();
|
138 |
}
|
262 |
}
|
263 |
|
264 |
public function settings_page(){
|
265 |
+
// wp_enqueue_script('ew-colorpicker', plugin_dir_url(EWBASE . '/index.php') . 'js/colorpicker.js');
|
266 |
+
wp_enqueue_script('iris');
|
267 |
+
wp_enqueue_script('easy-watermark', plugin_dir_url(EWBASE . '/index.php') . 'js/easy-watermark.js');
|
268 |
wp_enqueue_style('ew-style', plugin_dir_url(EWBASE . '/index.php') . 'css/style.css');
|
269 |
wp_enqueue_style('ew-cp-style', plugin_dir_url(EWBASE . '/index.php') . 'css/colorpicker.css');
|
270 |
if(function_exists('wp_enqueue_media')){
|
287 |
include EWVIEWS . EWDS . 'settings-page.php';
|
288 |
}
|
289 |
|
290 |
+
/**
|
291 |
+
* This method checks if the watermark image exists, if not it will be unset
|
292 |
+
*
|
293 |
+
* @return void
|
294 |
+
*/
|
295 |
+
private function checkWatermarkImage(){
|
296 |
+
$imgFile = $this->settings['image']['watermark_path'];
|
297 |
+
|
298 |
+
if(!empty($imgFile) && !file_exists($imgFile)){
|
299 |
+
// Image has been removed
|
300 |
+
$this->settings['image']['watermark_path'] = null;
|
301 |
+
$this->settings['image']['watermark_url'] = null;
|
302 |
+
$this->settings['image']['watermark_id'] = null;
|
303 |
+
$this->settings['image']['watermark_mime'] = null;
|
304 |
+
}
|
305 |
+
|
306 |
+
$this->set('image', $this->settings['image']);
|
307 |
+
}
|
308 |
+
|
309 |
function settings_link($links, $file){
|
310 |
static $this_plugin;
|
311 |
|
323 |
static $this_plugin;
|
324 |
|
325 |
if (!$this_plugin) {
|
326 |
+
$this_plugin = plugin_basename(EWBASE . EWDS . 'easy-watermark.php');
|
327 |
}
|
328 |
if ($file == $this_plugin) {
|
329 |
$donate_link = '<a href="'.$this->donationLink.'">'.__('Donate', 'easy-watermark').'</a>';
|
index.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Easy Watermark
|
4 |
Description: This plugin can automatically add image and text watermark to pictures as they are uploaded to wordpress media library. You can also watermark existing images manually (all at once or an every single image). Watermark image can be a png, gif (alpha channel supported in both cases) or jpg. It's also possibile to set watermark opacity (doesn't apply to png with alpha channel). For text watermark you can select font, set color, size, angel and opacity.
|
5 |
-
Version: 0.
|
6 |
Author: Wojtek Szałkiewicz
|
7 |
Author URI: http://szalkiewicz.pl/
|
8 |
License: GPLv2 or later
|
@@ -17,15 +17,16 @@ if(is_admin()){
|
|
17 |
define('EWDS', DIRECTORY_SEPARATOR);
|
18 |
define('EWBASE', dirname(__FILE__));
|
19 |
define('EWLIB', EWBASE . EWDS . 'lib');
|
|
|
20 |
define('EWVIEWS', EWBASE . EWDS . 'views');
|
21 |
|
22 |
// Require all needed files
|
23 |
-
require_once
|
24 |
-
require_once
|
|
|
|
|
25 |
require_once EWLIB . EWDS . 'EasyWatermark.php';
|
26 |
-
require_once EWLIB . EWDS . 'EasyWatermarkPlugin.php';
|
27 |
-
require_once EWLIB . EWDS . 'EasyWatermarkSettings.php';
|
28 |
|
29 |
// Initiate plugin
|
30 |
-
|
31 |
}
|
2 |
/*
|
3 |
Plugin Name: Easy Watermark
|
4 |
Description: This plugin can automatically add image and text watermark to pictures as they are uploaded to wordpress media library. You can also watermark existing images manually (all at once or an every single image). Watermark image can be a png, gif (alpha channel supported in both cases) or jpg. It's also possibile to set watermark opacity (doesn't apply to png with alpha channel). For text watermark you can select font, set color, size, angel and opacity.
|
5 |
+
Version: 0.5
|
6 |
Author: Wojtek Szałkiewicz
|
7 |
Author URI: http://szalkiewicz.pl/
|
8 |
License: GPLv2 or later
|
17 |
define('EWDS', DIRECTORY_SEPARATOR);
|
18 |
define('EWBASE', dirname(__FILE__));
|
19 |
define('EWLIB', EWBASE . EWDS . 'lib');
|
20 |
+
define('EWCLASSES', EWBASE . EWDS . 'classes');
|
21 |
define('EWVIEWS', EWBASE . EWDS . 'views');
|
22 |
|
23 |
// Require all needed files
|
24 |
+
require_once EWCLASSES . EWDS . 'class-ew-pluggable.php';
|
25 |
+
require_once EWCLASSES . EWDS . 'class-ew-plugin-core.php';
|
26 |
+
require_once EWCLASSES . EWDS . 'class-ew-plugin.php';
|
27 |
+
require_once EWCLASSES . EWDS . 'class-ew-settings.php';
|
28 |
require_once EWLIB . EWDS . 'EasyWatermark.php';
|
|
|
|
|
29 |
|
30 |
// Initiate plugin
|
31 |
+
EW_Plugin::init();
|
32 |
}
|
js/{interface.js → easy-watermark.js}
RENAMED
@@ -20,8 +20,30 @@
|
|
20 |
});
|
21 |
|
22 |
var picker = $('#colorselector');
|
23 |
-
var input = $('#ew-color')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
picker.ColorPicker({
|
26 |
onSubmit: function(hsb, hex, rgb, el){
|
27 |
picker.children('div').css('backgroundColor', '#' + hex);
|
@@ -32,7 +54,8 @@
|
|
32 |
$(this).ColorPickerSetColor(input.val());
|
33 |
}
|
34 |
});
|
35 |
-
|
|
|
36 |
$('#alignmentbox input').css('visibility', 'hidden');
|
37 |
$('#alignmentbox input:checked').each(function(){
|
38 |
$(this).parent().addClass('current');
|
@@ -47,19 +70,22 @@
|
|
47 |
|
48 |
if($('input[name=option_page]').val() == 'easy-watermark-settings-text'){
|
49 |
|
50 |
-
var refreshImage = function(){
|
51 |
var row = $('#ew-preview-row');
|
52 |
-
var text = $('#
|
53 |
|
54 |
if(text){
|
55 |
row.removeClass('hidden');
|
56 |
var font = $('#ew-font').val();
|
57 |
-
var color = $('#ew-color').val();
|
58 |
var size = $('#ew-size').val();
|
59 |
var angle = $('#ew-angle').val();
|
60 |
var opacity = $('#ew-opacity').val();
|
61 |
|
62 |
-
|
|
|
|
|
|
|
|
|
63 |
var url = window.location + params;
|
64 |
|
65 |
$('#ew-text-preview').attr('src', url);
|
20 |
});
|
21 |
|
22 |
var picker = $('#colorselector');
|
23 |
+
var input = $('#ew-color');
|
24 |
+
var chenged = false;
|
25 |
+
/**
|
26 |
+
* Using built-in Iris
|
27 |
+
*/
|
28 |
+
input.iris({
|
29 |
+
palettes: true,
|
30 |
+
hide: false,
|
31 |
+
change: function(e, ui){
|
32 |
+
var color = ui.color.toString();
|
33 |
+
input.css('background-color', color);
|
34 |
+
if(ui.color.l() < 50){
|
35 |
+
input.css('color', 'white');
|
36 |
+
}
|
37 |
+
else {
|
38 |
+
input.css('color', 'black');
|
39 |
+
}
|
40 |
|
41 |
+
refreshImage(color);
|
42 |
+
}
|
43 |
+
});
|
44 |
+
|
45 |
+
|
46 |
+
/** Old colour picker
|
47 |
picker.ColorPicker({
|
48 |
onSubmit: function(hsb, hex, rgb, el){
|
49 |
picker.children('div').css('backgroundColor', '#' + hex);
|
54 |
$(this).ColorPickerSetColor(input.val());
|
55 |
}
|
56 |
});
|
57 |
+
*/
|
58 |
+
|
59 |
$('#alignmentbox input').css('visibility', 'hidden');
|
60 |
$('#alignmentbox input:checked').each(function(){
|
61 |
$(this).parent().addClass('current');
|
70 |
|
71 |
if($('input[name=option_page]').val() == 'easy-watermark-settings-text'){
|
72 |
|
73 |
+
var refreshImage = function(color){
|
74 |
var row = $('#ew-preview-row');
|
75 |
+
var text = $('#title').val();
|
76 |
|
77 |
if(text){
|
78 |
row.removeClass('hidden');
|
79 |
var font = $('#ew-font').val();
|
|
|
80 |
var size = $('#ew-size').val();
|
81 |
var angle = $('#ew-angle').val();
|
82 |
var opacity = $('#ew-opacity').val();
|
83 |
|
84 |
+
if(typeof color != 'string'){
|
85 |
+
color = $('#ew-color').val();
|
86 |
+
}
|
87 |
+
|
88 |
+
var params = '&tp=1&text='+encodeURIComponent(text)+'&font='+font+'&color='+encodeURIComponent(color)+'&size='+size+'&angle='+angle+'&opacity='+opacity;
|
89 |
var url = window.location + params;
|
90 |
|
91 |
$('#ew-text-preview').attr('src', url);
|
languages/easy-watermark-es_ES.mo
CHANGED
Binary file
|
languages/easy-watermark-es_ES.po
CHANGED
@@ -1,89 +1,134 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Easy Watermark 0.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: Manuel <mmartinortiz@gmail.com>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.5.4\n"
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
15 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
16 |
msgid "Watermark successfully added."
|
17 |
msgstr "Marca de agua añadida correctamente"
|
18 |
|
19 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
msgid "Invalid mime type."
|
21 |
msgstr "Tipo MIME inválido"
|
22 |
|
23 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
24 |
msgid "No watermark image selected and no watermark text set."
|
25 |
msgstr "Marca de agua no seleccionada y texto de agua no establecido"
|
26 |
|
27 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
28 |
msgid "Go to settings page"
|
29 |
msgstr "Ir a la página de configuración"
|
30 |
|
31 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
32 |
msgid "An error has occurred."
|
33 |
msgstr "Ha ocurrido un error"
|
34 |
|
35 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
36 |
-
msgid "
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
40 |
msgid "Read more"
|
41 |
msgstr "Leer más"
|
42 |
|
43 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
44 |
msgid "Add Watermark"
|
45 |
msgstr "Añadir marca de agua"
|
46 |
|
47 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
48 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkPlugin.php:258
|
49 |
msgid "Add watermark"
|
50 |
msgstr "Añadir marca de agua"
|
51 |
|
52 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
53 |
#, php-format
|
54 |
msgid "Not supported mime type of %s. Skipping..."
|
55 |
msgstr "Tipo MIME %s no soportado, omitiendo..."
|
56 |
|
57 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
58 |
#, php-format
|
59 |
msgid "Watermark successfully added to %s"
|
60 |
msgstr "Marca de agua añadida correctamente a %s"
|
61 |
|
62 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
msgid "General"
|
64 |
msgstr "General"
|
65 |
|
66 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
67 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
68 |
msgid "Image"
|
69 |
msgstr "Imagen"
|
70 |
|
71 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
72 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
73 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
74 |
msgid "Text"
|
75 |
msgstr "Texto"
|
76 |
|
77 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
78 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
79 |
-
msgid "Easy Watermark"
|
80 |
-
msgstr "Easy Watermark"
|
81 |
-
|
82 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkSettings.php:281
|
83 |
msgid "Settings"
|
84 |
msgstr "Configuración"
|
85 |
|
86 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
87 |
msgid "Donate"
|
88 |
msgstr "Donar"
|
89 |
|
@@ -105,7 +150,9 @@ msgstr "Biblioteca GD activa"
|
|
105 |
|
106 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:6
|
107 |
msgid "GD library is not available! Easy Watermark can't work without it."
|
108 |
-
msgstr "
|
|
|
|
|
109 |
|
110 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:8
|
111 |
msgid "Plugin page in WP repository"
|
@@ -127,25 +174,89 @@ msgstr "¿Me quieres comprar un café?"
|
|
127 |
msgid "Go to Media Library"
|
128 |
msgstr "Ir a biblioteca de medios"
|
129 |
|
130 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
131 |
-
msgid "
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
135 |
msgid "Proceed"
|
136 |
msgstr "Procede"
|
137 |
|
138 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
139 |
msgid "Cancel"
|
140 |
msgstr "Cancelar"
|
141 |
|
142 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
143 |
msgid "Add watermark to all images"
|
144 |
msgstr "Añadir una marca de agua a todas las imágenes"
|
145 |
|
146 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
147 |
-
msgid "
|
148 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
|
150 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
151 |
msgid "Auto Watermark"
|
@@ -167,29 +278,82 @@ msgstr "Selecciona que tipo de imagen deben tener marca de agua"
|
|
167 |
msgid "Image Sizes"
|
168 |
msgstr "Tamaño de las imágenes"
|
169 |
|
170 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
171 |
msgid "Select image sizes which should be watermarked"
|
172 |
msgstr "Selecciona el tamaño de las imágenes que deberán tener marca de agua"
|
173 |
|
174 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
175 |
msgid "Watermark Type"
|
176 |
msgstr "Tipo de marca de agua"
|
177 |
|
178 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
179 |
msgid "Image + Text"
|
180 |
msgstr "Imagen + Texto"
|
181 |
|
182 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
183 |
msgid "Choose, whether to apply image, text, or both."
|
184 |
msgstr "Elige si se utilizará una imagen, texto, o ambos"
|
185 |
|
186 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
187 |
msgid "Jpeg Quality"
|
188 |
msgstr "Calidad Jpeg"
|
189 |
|
190 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
191 |
-
msgid "
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
195 |
msgid "Watermark Image"
|
@@ -208,8 +372,15 @@ msgid "Select/Upload Image"
|
|
208 |
msgstr "Selecciona/Sube una imagen"
|
209 |
|
210 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:8
|
211 |
-
msgid "
|
212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:17
|
215 |
msgid "Click on image to change it."
|
@@ -220,8 +391,15 @@ msgid "Remove image"
|
|
220 |
msgstr "Elimiar imagen"
|
221 |
|
222 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:18
|
223 |
-
msgid "
|
224 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
|
226 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:21
|
227 |
msgid "Image Alignment"
|
@@ -260,8 +438,12 @@ msgid "Scale to Smaller"
|
|
260 |
msgstr "Escalar al más pequeño"
|
261 |
|
262 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:43
|
263 |
-
msgid "
|
264 |
-
|
|
|
|
|
|
|
|
|
265 |
|
266 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:46
|
267 |
msgid "Scale"
|
@@ -272,22 +454,26 @@ msgid "Image Offset"
|
|
272 |
msgstr "Offset de la imagen"
|
273 |
|
274 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
275 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
276 |
msgid "x"
|
277 |
msgstr "x"
|
278 |
|
279 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
280 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
281 |
msgid "y"
|
282 |
msgstr "y"
|
283 |
|
284 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
285 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
286 |
-
msgid "
|
287 |
-
|
|
|
|
|
|
|
|
|
288 |
|
289 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
290 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
291 |
msgid "Opacity"
|
292 |
msgstr "Opacidad"
|
293 |
|
@@ -295,31 +481,40 @@ msgstr "Opacidad"
|
|
295 |
msgid "Opacity does not affect the png images with alpha chanel."
|
296 |
msgstr "La opacidad no afecta a las imágenes PNG con canal alfa"
|
297 |
|
298 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
msgid "Preview"
|
300 |
msgstr "Previsualización"
|
301 |
|
302 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
303 |
msgid "Text Alignment"
|
304 |
msgstr "Alineación del texto"
|
305 |
|
306 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
307 |
msgid "Text Offset"
|
308 |
msgstr "Offset del texto"
|
309 |
|
310 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
311 |
msgid "Font"
|
312 |
msgstr "Fuente"
|
313 |
|
314 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
315 |
msgid "Text Color"
|
316 |
msgstr "Color del texto"
|
317 |
|
318 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
319 |
msgid "Text Size"
|
320 |
msgstr "Tamaño del texto"
|
321 |
|
322 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
323 |
msgid "Text Angle"
|
324 |
msgstr "Ángulo del texto"
|
325 |
|
@@ -330,4 +525,3 @@ msgstr "Configuración de Easy Watermark"
|
|
330 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-page.php:22
|
331 |
msgid "Save Changes"
|
332 |
msgstr "Guardar cambios"
|
333 |
-
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Watermark 0.5\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-25 23:31+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-08-26 09:20+0100\n"
|
7 |
"Last-Translator: Manuel <mmartinortiz@gmail.com>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
+
"X-Poedit-Basepath: /media/szaleq/Data/easy-watermark/trunk/\n"
|
15 |
+
"X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk/classes\n"
|
16 |
+
"X-Poedit-SearchPath-1: /media/szaleq/Data/easy-watermark/trunk/views\n"
|
17 |
|
18 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:158
|
19 |
+
msgid "Cheatin’ uh?"
|
20 |
+
msgstr "Haciendo trampas?"
|
21 |
+
|
22 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:195
|
23 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
24 |
msgid "Watermark successfully added."
|
25 |
msgstr "Marca de agua añadida correctamente"
|
26 |
|
27 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
28 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
29 |
+
msgid "watermarked"
|
30 |
+
msgstr "Marca de agua añadida"
|
31 |
+
|
32 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
33 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
34 |
+
msgid "not watermarked"
|
35 |
+
msgstr "Marca de agua NO añadida"
|
36 |
+
|
37 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:199
|
38 |
+
#, php-format
|
39 |
+
msgid "An Image has been marked as %s."
|
40 |
+
msgstr "Una imagen ha sido marcada como %s"
|
41 |
+
|
42 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:205
|
43 |
msgid "Invalid mime type."
|
44 |
msgstr "Tipo MIME inválido"
|
45 |
|
46 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:208
|
47 |
msgid "No watermark image selected and no watermark text set."
|
48 |
msgstr "Marca de agua no seleccionada y texto de agua no establecido"
|
49 |
|
50 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:210
|
51 |
msgid "Go to settings page"
|
52 |
msgstr "Ir a la página de configuración"
|
53 |
|
54 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:214
|
55 |
msgid "An error has occurred."
|
56 |
msgstr "Ha ocurrido un error"
|
57 |
|
58 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
59 |
+
msgid ""
|
60 |
+
"Easy Watermark is active, but requires GD library to work. Please enable "
|
61 |
+
"this extension."
|
62 |
+
msgstr ""
|
63 |
+
"Easy Watermark está activo, pero requiere la biblioteca GD para funcionar. "
|
64 |
+
"Por favor, activa esta extensión"
|
65 |
|
66 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
67 |
msgid "Read more"
|
68 |
msgstr "Leer más"
|
69 |
|
70 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:244
|
71 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:271
|
72 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:661
|
73 |
msgid "Add Watermark"
|
74 |
msgstr "Añadir marca de agua"
|
75 |
|
76 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:287
|
|
|
77 |
msgid "Add watermark"
|
78 |
msgstr "Añadir marca de agua"
|
79 |
|
80 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:434
|
81 |
+
#, php-format
|
82 |
+
msgid "No permission to edit file %s. Skipping..."
|
83 |
+
msgstr "No tienes permiso para editar el fichero %s. Omitiendo..."
|
84 |
+
|
85 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:439
|
86 |
#, php-format
|
87 |
msgid "Not supported mime type of %s. Skipping..."
|
88 |
msgstr "Tipo MIME %s no soportado, omitiendo..."
|
89 |
|
90 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:445
|
91 |
#, php-format
|
92 |
msgid "Watermark successfully added to %s"
|
93 |
msgstr "Marca de agua añadida correctamente a %s"
|
94 |
|
95 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:630
|
96 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:114
|
97 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
98 |
+
msgid "Easy Watermark"
|
99 |
+
msgstr "Easy Watermark"
|
100 |
+
|
101 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:645
|
102 |
+
msgid "Status"
|
103 |
+
msgstr "Estado"
|
104 |
+
|
105 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
106 |
+
msgid "mark as not watermarked"
|
107 |
+
msgstr "No marcardo para procesar"
|
108 |
+
|
109 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
110 |
+
msgid "mark as watermarked"
|
111 |
+
msgstr "Marcado como procesado"
|
112 |
+
|
113 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:87
|
114 |
msgid "General"
|
115 |
msgstr "General"
|
116 |
|
117 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:88
|
118 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:29
|
119 |
msgid "Image"
|
120 |
msgstr "Imagen"
|
121 |
|
122 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:89
|
123 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:30
|
|
|
124 |
msgid "Text"
|
125 |
msgstr "Texto"
|
126 |
|
127 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:316
|
|
|
|
|
|
|
|
|
|
|
128 |
msgid "Settings"
|
129 |
msgstr "Configuración"
|
130 |
|
131 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:329
|
132 |
msgid "Donate"
|
133 |
msgstr "Donar"
|
134 |
|
150 |
|
151 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:6
|
152 |
msgid "GD library is not available! Easy Watermark can't work without it."
|
153 |
+
msgstr ""
|
154 |
+
"La biblioteca GD no está disponible. Easy Watermark no puede funcionar sin "
|
155 |
+
"ella"
|
156 |
|
157 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:8
|
158 |
msgid "Plugin page in WP repository"
|
174 |
msgid "Go to Media Library"
|
175 |
msgstr "Ir a biblioteca de medios"
|
176 |
|
177 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:17
|
178 |
+
msgid ""
|
179 |
+
"You are about to watermark all images in the library. This action can not be "
|
180 |
+
"undone. Are you sure you want to do this?"
|
181 |
+
msgstr ""
|
182 |
+
"Vas a añadir una marca de agua a todas las imágenes de la biblioteca. Esta "
|
183 |
+
"opción no puede deshacerse. ¿Estás seguro de que quieres continuar?"
|
184 |
+
|
185 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:19
|
186 |
+
msgid ""
|
187 |
+
"You are about to watermark all images you have uploaded ever. This action "
|
188 |
+
"can not be undone. Are you sure you want to do this?"
|
189 |
+
msgstr ""
|
190 |
+
"Vas a añadir una marca de agua a todas las imágenes de la biblioteca. Esta "
|
191 |
+
"opción no puede deshacerse. ¿Estás seguro de que quieres continuar?"
|
192 |
|
193 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
194 |
msgid "Proceed"
|
195 |
msgstr "Procede"
|
196 |
|
197 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
198 |
msgid "Cancel"
|
199 |
msgstr "Cancelar"
|
200 |
|
201 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:29
|
202 |
msgid "Add watermark to all images"
|
203 |
msgstr "Añadir una marca de agua a todas las imágenes"
|
204 |
|
205 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:31
|
206 |
+
msgid "Add watermark to all images uploaded by you"
|
207 |
+
msgstr "Añadir una marca de agua a todas las imágenes subidas por ti"
|
208 |
+
|
209 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:33
|
210 |
+
msgid ""
|
211 |
+
"Be carefull with that option. If some images alredy has watermark, it will "
|
212 |
+
"be added though."
|
213 |
+
msgstr ""
|
214 |
+
"Se cuidadoso con esta opción. Si la imagen ya tiene una marca de agua, esta "
|
215 |
+
"se añadirá de todas formas"
|
216 |
+
|
217 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:2
|
218 |
+
msgid "Placeholders"
|
219 |
+
msgstr "Etiquetas"
|
220 |
+
|
221 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:4
|
222 |
+
msgid ""
|
223 |
+
"You can use this placeholders in your text watermark, it will be replaced "
|
224 |
+
"with proper value just befor applying watermark."
|
225 |
+
msgstr ""
|
226 |
+
"Puedes utilizar estas etiquetas en tu marca de agua, serán reemplazadas por "
|
227 |
+
"el valor apropiado cuando se aplique la marca de agua"
|
228 |
+
|
229 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:6
|
230 |
+
msgid "current user login"
|
231 |
+
msgstr "usuario actual"
|
232 |
+
|
233 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:7
|
234 |
+
msgid "current user display name"
|
235 |
+
msgstr "nombre de usuario mostrado"
|
236 |
+
|
237 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:8
|
238 |
+
msgid "current user email address"
|
239 |
+
msgstr "dirección de correo actual"
|
240 |
+
|
241 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:9
|
242 |
+
msgid "site admin email"
|
243 |
+
msgstr "correo electrónico del administrador del sitio"
|
244 |
+
|
245 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:10
|
246 |
+
msgid "blog title"
|
247 |
+
msgstr "título del blog"
|
248 |
+
|
249 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:11
|
250 |
+
msgid "blog url"
|
251 |
+
msgstr "url del blog"
|
252 |
+
|
253 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:12
|
254 |
+
msgid "current date (see general settings for date format)"
|
255 |
+
msgstr "fecha actual (mira las opciones generales para dar formato a la fecha)"
|
256 |
+
|
257 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:13
|
258 |
+
msgid "current time"
|
259 |
+
msgstr "hora actual"
|
260 |
|
261 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
262 |
msgid "Auto Watermark"
|
278 |
msgid "Image Sizes"
|
279 |
msgstr "Tamaño de las imágenes"
|
280 |
|
281 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:23
|
282 |
msgid "Select image sizes which should be watermarked"
|
283 |
msgstr "Selecciona el tamaño de las imágenes que deberán tener marca de agua"
|
284 |
|
285 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:26
|
286 |
msgid "Watermark Type"
|
287 |
msgstr "Tipo de marca de agua"
|
288 |
|
289 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:31
|
290 |
msgid "Image + Text"
|
291 |
msgstr "Imagen + Texto"
|
292 |
|
293 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:33
|
294 |
msgid "Choose, whether to apply image, text, or both."
|
295 |
msgstr "Elige si se utilizará una imagen, texto, o ambos"
|
296 |
|
297 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:36
|
298 |
msgid "Jpeg Quality"
|
299 |
msgstr "Calidad Jpeg"
|
300 |
|
301 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:37
|
302 |
+
msgid ""
|
303 |
+
"Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, "
|
304 |
+
"biggest file)"
|
305 |
+
msgstr ""
|
306 |
+
"Establece la calidad Jpeg de 0 (peor calidad, imagen más pequeña) a 100 "
|
307 |
+
"(mejor calidad, imagen más grande)"
|
308 |
+
|
309 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:39
|
310 |
+
msgid "Date Format"
|
311 |
+
msgstr "Formato de Fecha"
|
312 |
+
|
313 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:40
|
314 |
+
msgid "Leave blank to use default date format (see general settings)"
|
315 |
+
msgstr "Vacío para usar las opciones por defecto (mira las opciones generales)"
|
316 |
+
|
317 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:42
|
318 |
+
msgid "Time Format"
|
319 |
+
msgstr "Formato de hora"
|
320 |
+
|
321 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:43
|
322 |
+
msgid "Leave blank to use default time format"
|
323 |
+
msgstr "Vacío para usar las opciones de hora por defecto"
|
324 |
+
|
325 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:47
|
326 |
+
msgid "User Roles"
|
327 |
+
msgstr "Roles del usuario"
|
328 |
+
|
329 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:48
|
330 |
+
msgid ""
|
331 |
+
"Select, which user roles can have a permission to apply watermarks (only "
|
332 |
+
"roles with permission to upload files are listed here)"
|
333 |
+
msgstr ""
|
334 |
+
"Selecciona que roles de usuario tienen permiso para aplicar marcas de agua "
|
335 |
+
"(Solo se muestran los roles que tienen permiso para subir ficheros)"
|
336 |
+
|
337 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:59
|
338 |
+
msgid "allow"
|
339 |
+
msgstr "permitir"
|
340 |
+
|
341 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:60
|
342 |
+
msgid "deny"
|
343 |
+
msgstr "denegar"
|
344 |
+
|
345 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:64
|
346 |
+
msgid "Allow to Auto Watermark"
|
347 |
+
msgstr "Marcas de agua automáticas"
|
348 |
+
|
349 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:65
|
350 |
+
msgid ""
|
351 |
+
"Check this to allow watermarking on upload to every user. If unchecked, "
|
352 |
+
"'Auto Watermark' function will be dependent on above role-based settings."
|
353 |
+
msgstr ""
|
354 |
+
"Selecciona esta opción para permitir aplicar las marcas de agua a los "
|
355 |
+
"ficheros subidos por cualquier usuario. Si no se marca, la función 'Marca de "
|
356 |
+
"agua automática' dependerá de las opciones basadas en roles"
|
357 |
|
358 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
359 |
msgid "Watermark Image"
|
372 |
msgstr "Selecciona/Sube una imagen"
|
373 |
|
374 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:8
|
375 |
+
msgid ""
|
376 |
+
"Note: If you want to upload a new image, make sure that \"Auto watermark\" "
|
377 |
+
"option is unticked or text watermark is not set. Otherwise uploaded image "
|
378 |
+
"will be watermarked."
|
379 |
+
msgstr ""
|
380 |
+
"Nota: Si quires añadir una nueva imagen, asegurate de que la opción \"Marca "
|
381 |
+
"de agua automática\" no está marcada o el texto para la marca de agua no "
|
382 |
+
"está establecido. De otra forma, las imágenes que subas tendrán una marca de "
|
383 |
+
"agua"
|
384 |
|
385 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:17
|
386 |
msgid "Click on image to change it."
|
391 |
msgstr "Elimiar imagen"
|
392 |
|
393 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:18
|
394 |
+
msgid ""
|
395 |
+
"Note: If you want to upload a new image, make sure that \"Auto watermark\" "
|
396 |
+
"option is unticked, or remove current image and unset text watermark first. "
|
397 |
+
"Otherwise uploaded image will be watermarked."
|
398 |
+
msgstr ""
|
399 |
+
"Nota: Si quieres subir una imagen nueva, asegúrate de que la opción \"Marca "
|
400 |
+
"de agua automática\" no está seleccionada, o elimina la imagen actual o el "
|
401 |
+
"texto de marca de agua primero. De lo contrario, la imagen subida tendrá una "
|
402 |
+
"marca de agua"
|
403 |
|
404 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:21
|
405 |
msgid "Image Alignment"
|
438 |
msgstr "Escalar al más pequeño"
|
439 |
|
440 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:43
|
441 |
+
msgid ""
|
442 |
+
"If this is checked, watermark will be scaled only for images smaller than "
|
443 |
+
"watermark image."
|
444 |
+
msgstr ""
|
445 |
+
"Si esto está seleccionado, la marca de agua será redimensionada sólo para "
|
446 |
+
"imágenes más pequelas que la imagen de la marca de agua"
|
447 |
|
448 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:46
|
449 |
msgid "Scale"
|
454 |
msgstr "Offset de la imagen"
|
455 |
|
456 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
457 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:29
|
458 |
msgid "x"
|
459 |
msgstr "x"
|
460 |
|
461 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
462 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:31
|
463 |
msgid "y"
|
464 |
msgstr "y"
|
465 |
|
466 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
467 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:32
|
468 |
+
msgid ""
|
469 |
+
"Offset can be defined in pixels (just numeric value) or as percentage (e.g. "
|
470 |
+
"'33%')"
|
471 |
+
msgstr ""
|
472 |
+
"El offset puede ser definido en píxeles (un valor numérico) o como "
|
473 |
+
"porcentaje (por ejemplo, '33%')"
|
474 |
|
475 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
476 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:62
|
477 |
msgid "Opacity"
|
478 |
msgstr "Opacidad"
|
479 |
|
481 |
msgid "Opacity does not affect the png images with alpha chanel."
|
482 |
msgstr "La opacidad no afecta a las imágenes PNG con canal alfa"
|
483 |
|
484 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:2
|
485 |
+
msgid "Watermark Text"
|
486 |
+
msgstr "Texto de la marca de agua"
|
487 |
+
|
488 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
489 |
+
msgid "You can use placeholders listed on the right side of this page"
|
490 |
+
msgstr ""
|
491 |
+
"Puedes utilizar las etiquetas mostradas en el lado derecho de esta página"
|
492 |
+
|
493 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:7
|
494 |
msgid "Preview"
|
495 |
msgstr "Previsualización"
|
496 |
|
497 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:15
|
498 |
msgid "Text Alignment"
|
499 |
msgstr "Alineación del texto"
|
500 |
|
501 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:28
|
502 |
msgid "Text Offset"
|
503 |
msgstr "Offset del texto"
|
504 |
|
505 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:34
|
506 |
msgid "Font"
|
507 |
msgstr "Fuente"
|
508 |
|
509 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:45
|
510 |
msgid "Text Color"
|
511 |
msgstr "Color del texto"
|
512 |
|
513 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:54
|
514 |
msgid "Text Size"
|
515 |
msgstr "Tamaño del texto"
|
516 |
|
517 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:58
|
518 |
msgid "Text Angle"
|
519 |
msgstr "Ángulo del texto"
|
520 |
|
525 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-page.php:22
|
526 |
msgid "Save Changes"
|
527 |
msgstr "Guardar cambios"
|
|
languages/easy-watermark-fr_FR.mo
CHANGED
Binary file
|
languages/easy-watermark-fr_FR.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Easy Watermark 0.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: Regis B <rbrisard@gmail.com>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"Language: French\n"
|
@@ -11,84 +11,121 @@ msgstr ""
|
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"X-Generator: Poedit 1.5.4\n"
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
16 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
17 |
msgid "Watermark successfully added."
|
18 |
msgstr "Watermark ajouté avec succès."
|
19 |
|
20 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
msgid "Invalid mime type."
|
22 |
msgstr "Type MIME du fichier invalide."
|
23 |
|
24 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
25 |
msgid "No watermark image selected and no watermark text set."
|
26 |
msgstr "Aucune image ou texte Watermark n'est défini."
|
27 |
|
28 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
29 |
msgid "Go to settings page"
|
30 |
msgstr "Allez à la page des réglages"
|
31 |
|
32 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
33 |
msgid "An error has occurred."
|
34 |
msgstr "Une erreur est survenue"
|
35 |
|
36 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
37 |
-
msgid ""
|
38 |
-
"Easy Watermark
|
39 |
-
"this extension."
|
40 |
-
msgstr ""
|
41 |
-
"Easy Watermark est activé, mais nécessite la présence de la librairie GD. "
|
42 |
-
"Veuillez activer cette extension."
|
43 |
|
44 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
45 |
msgid "Read more"
|
46 |
msgstr "Lire la suite"
|
47 |
|
48 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
49 |
msgid "Add Watermark"
|
50 |
msgstr "Ajouter Watermark"
|
51 |
|
52 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
53 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkPlugin.php:258
|
54 |
msgid "Add watermark"
|
55 |
msgstr "Ajouter Watermark"
|
56 |
|
57 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
58 |
#, php-format
|
59 |
msgid "Not supported mime type of %s. Skipping..."
|
60 |
msgstr "Type MIME du fichier %s non supporté. Ignoré..."
|
61 |
|
62 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
63 |
#, php-format
|
64 |
msgid "Watermark successfully added to %s"
|
65 |
msgstr "Watermark ajouté avec succès à %s"
|
66 |
|
67 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
msgid "General"
|
69 |
msgstr "Général"
|
70 |
|
71 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
72 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
73 |
msgid "Image"
|
74 |
msgstr "Image"
|
75 |
|
76 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
77 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
78 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
79 |
msgid "Text"
|
80 |
msgstr "Texte"
|
81 |
|
82 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
83 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
84 |
-
msgid "Easy Watermark"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkSettings.php:281
|
88 |
msgid "Settings"
|
89 |
msgstr "Réglages"
|
90 |
|
91 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
92 |
msgid "Donate"
|
93 |
msgstr "Faites un don"
|
94 |
|
@@ -110,9 +147,7 @@ msgstr "La bibliothèque GD est active."
|
|
110 |
|
111 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:6
|
112 |
msgid "GD library is not available! Easy Watermark can't work without it."
|
113 |
-
msgstr ""
|
114 |
-
"La librairie GD n'est pas disponible. Sans elle, Easy Watermark ne peut pas "
|
115 |
-
"fonctionner."
|
116 |
|
117 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:8
|
118 |
msgid "Plugin page in WP repository"
|
@@ -134,34 +169,73 @@ msgstr "Offrez-moi un café !"
|
|
134 |
msgid "Go to Media Library"
|
135 |
msgstr "Aller à la Bibliothèque de médias"
|
136 |
|
137 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
138 |
-
msgid ""
|
139 |
-
"
|
140 |
-
"undone. Are you sure you want to do this?"
|
141 |
-
msgstr ""
|
142 |
-
"Vous êtes sur le point d'ajouter un Watermark à toutes les images de la "
|
143 |
-
"bibliothèque. Cette action est irréversible. Etes-vous sûr de vouloir faire "
|
144 |
-
"cela ?"
|
145 |
|
146 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
|
|
|
|
|
|
|
|
147 |
msgid "Proceed"
|
148 |
msgstr "Continuer"
|
149 |
|
150 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
151 |
msgid "Cancel"
|
152 |
msgstr "Annuler"
|
153 |
|
154 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
155 |
msgid "Add watermark to all images"
|
156 |
msgstr "Ajouter Watermark à toutes les images"
|
157 |
|
158 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
159 |
-
msgid ""
|
160 |
-
"
|
161 |
-
|
162 |
-
|
163 |
-
"
|
164 |
-
"ajouté malgré tout."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
167 |
msgid "Auto Watermark"
|
@@ -183,33 +257,69 @@ msgstr "Sélectionnez les types d'image à marquer"
|
|
183 |
msgid "Image Sizes"
|
184 |
msgstr "Tailles d'image"
|
185 |
|
186 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
187 |
msgid "Select image sizes which should be watermarked"
|
188 |
msgstr "Sélectionnez les tailles d'image à marquer"
|
189 |
|
190 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
191 |
msgid "Watermark Type"
|
192 |
msgstr "Type de Watermark"
|
193 |
|
194 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
195 |
msgid "Image + Text"
|
196 |
msgstr "Image + Texte"
|
197 |
|
198 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
199 |
msgid "Choose, whether to apply image, text, or both."
|
200 |
msgstr "Choisissez le type de Watermark à appliquer (Image, Texte ou les deux)"
|
201 |
|
202 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
203 |
msgid "Jpeg Quality"
|
204 |
msgstr "Qualité Jpeg"
|
205 |
|
206 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
207 |
-
msgid ""
|
208 |
-
"
|
209 |
-
|
210 |
-
|
211 |
-
"
|
212 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
215 |
msgid "Watermark Image"
|
@@ -228,15 +338,8 @@ msgid "Select/Upload Image"
|
|
228 |
msgstr "Choisir/Envoyer une image"
|
229 |
|
230 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:8
|
231 |
-
msgid ""
|
232 |
-
"Note:
|
233 |
-
"option is unticked or text watermark is not set. Otherwise uploaded image "
|
234 |
-
"will be watermarked."
|
235 |
-
msgstr ""
|
236 |
-
"Note: Si vous souhaitez transférer une nouvelle image, assurez-vous que "
|
237 |
-
"l'option \"Watermark Automatique\" est désactivée ou qu'aucun texte "
|
238 |
-
"Watermark n'est défini. Dans le cas contraire, l'image transférée sera "
|
239 |
-
"marquée !"
|
240 |
|
241 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:17
|
242 |
msgid "Click on image to change it."
|
@@ -247,15 +350,8 @@ msgid "Remove image"
|
|
247 |
msgstr "Supprimer l'image"
|
248 |
|
249 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:18
|
250 |
-
msgid ""
|
251 |
-
"Note:
|
252 |
-
"option is unticked, or remove current image and unset text watermark first. "
|
253 |
-
"Otherwise uploaded image will be watermarked."
|
254 |
-
msgstr ""
|
255 |
-
"Note: Si vous souhaitez transférer une nouvelle image, assurez-vous que "
|
256 |
-
"l'option \"Watermark Automatique\" est désactivée ou supprimez préalablement "
|
257 |
-
"l'image et le texte Watermark. Dans le cas contraire, l'image transférée "
|
258 |
-
"sera marquée !"
|
259 |
|
260 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:21
|
261 |
msgid "Image Alignment"
|
@@ -294,12 +390,8 @@ msgid "Scale to Smaller"
|
|
294 |
msgstr "Réduire uniquement"
|
295 |
|
296 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:43
|
297 |
-
msgid ""
|
298 |
-
"
|
299 |
-
"watermark image."
|
300 |
-
msgstr ""
|
301 |
-
"Si coché, le Watermark sera mis à l'échelle uniquement si l'image est plus "
|
302 |
-
"petite que le Watermark."
|
303 |
|
304 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:46
|
305 |
msgid "Scale"
|
@@ -310,26 +402,22 @@ msgid "Image Offset"
|
|
310 |
msgstr "Décalage de l'image"
|
311 |
|
312 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
313 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
314 |
msgid "x"
|
315 |
msgstr ""
|
316 |
|
317 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
318 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
319 |
msgid "y"
|
320 |
msgstr ""
|
321 |
|
322 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
323 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
324 |
-
msgid ""
|
325 |
-
"
|
326 |
-
"'33%')"
|
327 |
-
msgstr ""
|
328 |
-
"Le décalage peut être défini en pixels (valeur numérique) ou en pourcentage "
|
329 |
-
"(par exemple '33%')"
|
330 |
|
331 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
332 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
333 |
msgid "Opacity"
|
334 |
msgstr "Opacité"
|
335 |
|
@@ -337,31 +425,39 @@ msgstr "Opacité"
|
|
337 |
msgid "Opacity does not affect the png images with alpha chanel."
|
338 |
msgstr "L'opacité n'a aucun effet sur les images PNG avec un canal alpha."
|
339 |
|
340 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
msgid "Preview"
|
342 |
msgstr "Aperçu"
|
343 |
|
344 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
345 |
msgid "Text Alignment"
|
346 |
msgstr "Alignement du texte"
|
347 |
|
348 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
349 |
msgid "Text Offset"
|
350 |
msgstr "Décalage du texte"
|
351 |
|
352 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
353 |
msgid "Font"
|
354 |
msgstr "Police"
|
355 |
|
356 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
357 |
msgid "Text Color"
|
358 |
msgstr "Couleur du texte"
|
359 |
|
360 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
361 |
msgid "Text Size"
|
362 |
msgstr "Taille du texte"
|
363 |
|
364 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
365 |
msgid "Text Angle"
|
366 |
msgstr "Angle du texte"
|
367 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Watermark 0.5\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-25 23:32+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-08-27 09:31+0100\n"
|
7 |
"Last-Translator: Regis B <rbrisard@gmail.com>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"Language: French\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"X-Generator: Poedit 1.5.4\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
+
"X-Poedit-Basepath: /media/szaleq/Data/easy-watermark/trunk/\n"
|
16 |
+
"X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk/classes\n"
|
17 |
+
"X-Poedit-SearchPath-1: /media/szaleq/Data/easy-watermark/trunk/views\n"
|
18 |
|
19 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:158
|
20 |
+
msgid "Cheatin’ uh?"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:195
|
24 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
25 |
msgid "Watermark successfully added."
|
26 |
msgstr "Watermark ajouté avec succès."
|
27 |
|
28 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
29 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
30 |
+
msgid "watermarked"
|
31 |
+
msgstr "tatouée (Watermark)"
|
32 |
+
|
33 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
34 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
35 |
+
msgid "not watermarked"
|
36 |
+
msgstr "non tatouée (Watermark)"
|
37 |
+
|
38 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:199
|
39 |
+
#, php-format
|
40 |
+
msgid "An Image has been marked as %s."
|
41 |
+
msgstr "Une image a été marquée comme %s."
|
42 |
+
|
43 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:205
|
44 |
msgid "Invalid mime type."
|
45 |
msgstr "Type MIME du fichier invalide."
|
46 |
|
47 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:208
|
48 |
msgid "No watermark image selected and no watermark text set."
|
49 |
msgstr "Aucune image ou texte Watermark n'est défini."
|
50 |
|
51 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:210
|
52 |
msgid "Go to settings page"
|
53 |
msgstr "Allez à la page des réglages"
|
54 |
|
55 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:214
|
56 |
msgid "An error has occurred."
|
57 |
msgstr "Une erreur est survenue"
|
58 |
|
59 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
60 |
+
msgid "Easy Watermark is active, but requires GD library to work. Please enable this extension."
|
61 |
+
msgstr "Easy Watermark est activé, mais nécessite la présence de la librairie GD. Veuillez activer cette extension."
|
|
|
|
|
|
|
|
|
62 |
|
63 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
64 |
msgid "Read more"
|
65 |
msgstr "Lire la suite"
|
66 |
|
67 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:244
|
68 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:271
|
69 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:661
|
70 |
msgid "Add Watermark"
|
71 |
msgstr "Ajouter Watermark"
|
72 |
|
73 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:287
|
|
|
74 |
msgid "Add watermark"
|
75 |
msgstr "Ajouter Watermark"
|
76 |
|
77 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:434
|
78 |
+
#, php-format
|
79 |
+
msgid "No permission to edit file %s. Skipping..."
|
80 |
+
msgstr "Pas la permission de modifier le fichier %s. Ignoré..."
|
81 |
+
|
82 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:439
|
83 |
#, php-format
|
84 |
msgid "Not supported mime type of %s. Skipping..."
|
85 |
msgstr "Type MIME du fichier %s non supporté. Ignoré..."
|
86 |
|
87 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:445
|
88 |
#, php-format
|
89 |
msgid "Watermark successfully added to %s"
|
90 |
msgstr "Watermark ajouté avec succès à %s"
|
91 |
|
92 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:630
|
93 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:114
|
94 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
95 |
+
msgid "Easy Watermark"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:645
|
99 |
+
msgid "Status"
|
100 |
+
msgstr "Etat"
|
101 |
+
|
102 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
103 |
+
msgid "mark as not watermarked"
|
104 |
+
msgstr "marquer comme sans Watermark"
|
105 |
+
|
106 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
107 |
+
msgid "mark as watermarked"
|
108 |
+
msgstr "Marquer comme tatoué (Watermark)"
|
109 |
+
|
110 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:87
|
111 |
msgid "General"
|
112 |
msgstr "Général"
|
113 |
|
114 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:88
|
115 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:29
|
116 |
msgid "Image"
|
117 |
msgstr "Image"
|
118 |
|
119 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:89
|
120 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:30
|
|
|
121 |
msgid "Text"
|
122 |
msgstr "Texte"
|
123 |
|
124 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:316
|
|
|
|
|
|
|
|
|
|
|
125 |
msgid "Settings"
|
126 |
msgstr "Réglages"
|
127 |
|
128 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:329
|
129 |
msgid "Donate"
|
130 |
msgstr "Faites un don"
|
131 |
|
147 |
|
148 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:6
|
149 |
msgid "GD library is not available! Easy Watermark can't work without it."
|
150 |
+
msgstr "La librairie GD n'est pas disponible. Sans elle, Easy Watermark ne peut pas fonctionner."
|
|
|
|
|
151 |
|
152 |
#: /media/szaleq/Data/easy-watermark/trunk/views/about.php:8
|
153 |
msgid "Plugin page in WP repository"
|
169 |
msgid "Go to Media Library"
|
170 |
msgstr "Aller à la Bibliothèque de médias"
|
171 |
|
172 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:17
|
173 |
+
msgid "You are about to watermark all images in the library. This action can not be undone. Are you sure you want to do this?"
|
174 |
+
msgstr "Vous êtes sur le point d'ajouter un Watermark à toutes les images de la bibliothèque. Cette action est irréversible. Etes-vous sûr de vouloir faire cela ?"
|
|
|
|
|
|
|
|
|
|
|
175 |
|
176 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:19
|
177 |
+
msgid "You are about to watermark all images you have uploaded ever. This action can not be undone. Are you sure you want to do this?"
|
178 |
+
msgstr "Vous êtes sur le point d'ajouter un Watermark à toutes les images de la bibliothèque. Cette action est irréversible. Etes-vous sûr de vouloir faire cela ?"
|
179 |
+
|
180 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
181 |
msgid "Proceed"
|
182 |
msgstr "Continuer"
|
183 |
|
184 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
185 |
msgid "Cancel"
|
186 |
msgstr "Annuler"
|
187 |
|
188 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:29
|
189 |
msgid "Add watermark to all images"
|
190 |
msgstr "Ajouter Watermark à toutes les images"
|
191 |
|
192 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:31
|
193 |
+
msgid "Add watermark to all images uploaded by you"
|
194 |
+
msgstr "Ajouter Watermark à toutes les images envoyées par vous"
|
195 |
+
|
196 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:33
|
197 |
+
msgid "Be carefull with that option. If some images alredy has watermark, it will be added though."
|
198 |
+
msgstr "Attention avec cette option. Si des images on déjà un Watermark, il sera ajouté malgré tout."
|
199 |
+
|
200 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:2
|
201 |
+
msgid "Placeholders"
|
202 |
+
msgstr "Balises"
|
203 |
+
|
204 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:4
|
205 |
+
msgid "You can use this placeholders in your text watermark, it will be replaced with proper value just befor applying watermark."
|
206 |
+
msgstr "Vous pouvez utiliser ces balises dans le texte du Watermark, elles seront remplacées par la bonne valeur juste avant d'appliquer le Watermark."
|
207 |
+
|
208 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:6
|
209 |
+
msgid "current user login"
|
210 |
+
msgstr "Identifiant de l'utilisateur courant"
|
211 |
+
|
212 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:7
|
213 |
+
msgid "current user display name"
|
214 |
+
msgstr "Nom de l'utilisateur courant"
|
215 |
+
|
216 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:8
|
217 |
+
msgid "current user email address"
|
218 |
+
msgstr "Email de l'utilisateur courant"
|
219 |
+
|
220 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:9
|
221 |
+
msgid "site admin email"
|
222 |
+
msgstr "Email de l'administrateur du site"
|
223 |
+
|
224 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:10
|
225 |
+
msgid "blog title"
|
226 |
+
msgstr "Titre du blog"
|
227 |
+
|
228 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:11
|
229 |
+
msgid "blog url"
|
230 |
+
msgstr "URL du blog"
|
231 |
+
|
232 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:12
|
233 |
+
msgid "current date (see general settings for date format)"
|
234 |
+
msgstr "Date"
|
235 |
+
|
236 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:13
|
237 |
+
msgid "current time"
|
238 |
+
msgstr "Heure"
|
239 |
|
240 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
241 |
msgid "Auto Watermark"
|
257 |
msgid "Image Sizes"
|
258 |
msgstr "Tailles d'image"
|
259 |
|
260 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:23
|
261 |
msgid "Select image sizes which should be watermarked"
|
262 |
msgstr "Sélectionnez les tailles d'image à marquer"
|
263 |
|
264 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:26
|
265 |
msgid "Watermark Type"
|
266 |
msgstr "Type de Watermark"
|
267 |
|
268 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:31
|
269 |
msgid "Image + Text"
|
270 |
msgstr "Image + Texte"
|
271 |
|
272 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:33
|
273 |
msgid "Choose, whether to apply image, text, or both."
|
274 |
msgstr "Choisissez le type de Watermark à appliquer (Image, Texte ou les deux)"
|
275 |
|
276 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:36
|
277 |
msgid "Jpeg Quality"
|
278 |
msgstr "Qualité Jpeg"
|
279 |
|
280 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:37
|
281 |
+
msgid "Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, biggest file)"
|
282 |
+
msgstr "Définissez la qualité de 0 (faible qualité, fichier plus petit) à 100 (qualité maximale, fichier plus gros)"
|
283 |
+
|
284 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:39
|
285 |
+
msgid "Date Format"
|
286 |
+
msgstr "Format de date"
|
287 |
+
|
288 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:40
|
289 |
+
msgid "Leave blank to use default date format (see general settings)"
|
290 |
+
msgstr "Laisser vide pour utiliser le format de date par défaut (voir dans les réglages généraux)"
|
291 |
+
|
292 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:42
|
293 |
+
msgid "Time Format"
|
294 |
+
msgstr "Format d'heure"
|
295 |
+
|
296 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:43
|
297 |
+
msgid "Leave blank to use default time format"
|
298 |
+
msgstr "Laisser vide pour utiliser le format d'heure par défaut (voir dans les réglages généraux)"
|
299 |
+
|
300 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:47
|
301 |
+
msgid "User Roles"
|
302 |
+
msgstr "Rôtes utilisateurs"
|
303 |
+
|
304 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:48
|
305 |
+
msgid "Select, which user roles can have a permission to apply watermarks (only roles with permission to upload files are listed here)"
|
306 |
+
msgstr "Sélectionnez les rôles d'utilisateurs autorisés à appliquer des Watermark (seuls les rôles autorisés à uploader des fichiers sont listés)"
|
307 |
+
|
308 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:59
|
309 |
+
msgid "allow"
|
310 |
+
msgstr "autoriser"
|
311 |
+
|
312 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:60
|
313 |
+
msgid "deny"
|
314 |
+
msgstr "refuser"
|
315 |
+
|
316 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:64
|
317 |
+
msgid "Allow to Auto Watermark"
|
318 |
+
msgstr "Watermark automatique"
|
319 |
+
|
320 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:65
|
321 |
+
msgid "Check this to allow watermarking on upload to every user. If unchecked, 'Auto Watermark' function will be dependent on above role-based settings."
|
322 |
+
msgstr "Cocher cette case pour autoriser les Watermark pour tous les utilisateurs. Si elle n'est pas cochée, le Watermark automatique dépendra des réglages ci-dessus."
|
323 |
|
324 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
325 |
msgid "Watermark Image"
|
338 |
msgstr "Choisir/Envoyer une image"
|
339 |
|
340 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:8
|
341 |
+
msgid "Note: If you want to upload a new image, make sure that \"Auto watermark\" option is unticked or text watermark is not set. Otherwise uploaded image will be watermarked."
|
342 |
+
msgstr "Note: Si vous souhaitez transférer une nouvelle image, assurez-vous que l'option \"Watermark Automatique\" est désactivée ou qu'aucun texte Watermark n'est défini. Dans le cas contraire, l'image transférée sera marquée !"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
|
344 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:17
|
345 |
msgid "Click on image to change it."
|
350 |
msgstr "Supprimer l'image"
|
351 |
|
352 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:18
|
353 |
+
msgid "Note: If you want to upload a new image, make sure that \"Auto watermark\" option is unticked, or remove current image and unset text watermark first. Otherwise uploaded image will be watermarked."
|
354 |
+
msgstr "Note: Si vous souhaitez transférer une nouvelle image, assurez-vous que l'option \"Watermark Automatique\" est désactivée ou supprimez préalablement l'image et le texte Watermark. Dans le cas contraire, l'image transférée sera marquée !"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
|
356 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:21
|
357 |
msgid "Image Alignment"
|
390 |
msgstr "Réduire uniquement"
|
391 |
|
392 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:43
|
393 |
+
msgid "If this is checked, watermark will be scaled only for images smaller than watermark image."
|
394 |
+
msgstr "Si coché, le Watermark sera mis à l'échelle uniquement si l'image est plus petite que le Watermark."
|
|
|
|
|
|
|
|
|
395 |
|
396 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:46
|
397 |
msgid "Scale"
|
402 |
msgstr "Décalage de l'image"
|
403 |
|
404 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
405 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:29
|
406 |
msgid "x"
|
407 |
msgstr ""
|
408 |
|
409 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
410 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:31
|
411 |
msgid "y"
|
412 |
msgstr ""
|
413 |
|
414 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
415 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:32
|
416 |
+
msgid "Offset can be defined in pixels (just numeric value) or as percentage (e.g. '33%')"
|
417 |
+
msgstr "Le décalage peut être défini en pixels (valeur numérique) ou en pourcentage (par exemple '33%')"
|
|
|
|
|
|
|
|
|
418 |
|
419 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
420 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:62
|
421 |
msgid "Opacity"
|
422 |
msgstr "Opacité"
|
423 |
|
425 |
msgid "Opacity does not affect the png images with alpha chanel."
|
426 |
msgstr "L'opacité n'a aucun effet sur les images PNG avec un canal alpha."
|
427 |
|
428 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:2
|
429 |
+
msgid "Watermark Text"
|
430 |
+
msgstr "Texte du Watermark"
|
431 |
+
|
432 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
433 |
+
msgid "You can use placeholders listed on the right side of this page"
|
434 |
+
msgstr "Vous pouvez utiliser les balises listées à droite de la page"
|
435 |
+
|
436 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:7
|
437 |
msgid "Preview"
|
438 |
msgstr "Aperçu"
|
439 |
|
440 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:15
|
441 |
msgid "Text Alignment"
|
442 |
msgstr "Alignement du texte"
|
443 |
|
444 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:28
|
445 |
msgid "Text Offset"
|
446 |
msgstr "Décalage du texte"
|
447 |
|
448 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:34
|
449 |
msgid "Font"
|
450 |
msgstr "Police"
|
451 |
|
452 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:45
|
453 |
msgid "Text Color"
|
454 |
msgstr "Couleur du texte"
|
455 |
|
456 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:54
|
457 |
msgid "Text Size"
|
458 |
msgstr "Taille du texte"
|
459 |
|
460 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:58
|
461 |
msgid "Text Angle"
|
462 |
msgstr "Angle du texte"
|
463 |
|
languages/easy-watermark-pl_PL.mo
CHANGED
Binary file
|
languages/easy-watermark-pl_PL.po
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Easy Watermark 0.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"Language: Polish\n"
|
@@ -11,29 +11,52 @@ msgstr ""
|
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"X-Generator: Poedit 1.5.4\n"
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
16 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
17 |
msgid "Watermark successfully added."
|
18 |
msgstr "Znak wodny został dodany."
|
19 |
|
20 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
msgid "Invalid mime type."
|
22 |
msgstr "Błędny typ mime."
|
23 |
|
24 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
25 |
msgid "No watermark image selected and no watermark text set."
|
26 |
msgstr "Nie ustawiono obrazu ani tekstu znaku wodnego."
|
27 |
|
28 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
29 |
msgid "Go to settings page"
|
30 |
msgstr "Przejdź do ustawień"
|
31 |
|
32 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
33 |
msgid "An error has occurred."
|
34 |
msgstr "Wystąpił błąd."
|
35 |
|
36 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
37 |
msgid ""
|
38 |
"Easy Watermark is active, but requires GD library to work. Please enable "
|
39 |
"this extension."
|
@@ -41,54 +64,72 @@ msgstr ""
|
|
41 |
"Easy Watermark jest aktywny, ale wymaga biblioteki GD do działania. Proszę, "
|
42 |
"włącz to rozszerzenie."
|
43 |
|
44 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
45 |
msgid "Read more"
|
46 |
msgstr "Czytaj więcej"
|
47 |
|
48 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
49 |
msgid "Add Watermark"
|
50 |
msgstr "Dodaj znak wodny"
|
51 |
|
52 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
53 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkPlugin.php:258
|
54 |
msgid "Add watermark"
|
55 |
msgstr "Dodaj znak wodny"
|
56 |
|
57 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
58 |
#, php-format
|
59 |
msgid "Not supported mime type of %s. Skipping..."
|
60 |
msgstr "Nieobsługiwany typ pliku %s. Omijanie..."
|
61 |
|
62 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
63 |
#, php-format
|
64 |
msgid "Watermark successfully added to %s"
|
65 |
msgstr "Znak wodny dodany do %s"
|
66 |
|
67 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
msgid "General"
|
69 |
msgstr "Ogólne"
|
70 |
|
71 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
72 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
73 |
msgid "Image"
|
74 |
msgstr "Obraz"
|
75 |
|
76 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
77 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
78 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
79 |
msgid "Text"
|
80 |
msgstr "Tekst"
|
81 |
|
82 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
83 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
84 |
-
msgid "Easy Watermark"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkSettings.php:281
|
88 |
msgid "Settings"
|
89 |
msgstr "Ustawienia"
|
90 |
|
91 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
92 |
msgid "Donate"
|
93 |
msgstr "Przekaż dotację"
|
94 |
|
@@ -133,7 +174,7 @@ msgstr "Chciałbyś postawić mi kawę?"
|
|
133 |
msgid "Go to Media Library"
|
134 |
msgstr "Idź do biblioteki mediów"
|
135 |
|
136 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
137 |
msgid ""
|
138 |
"You are about to watermark all images in the library. This action can not be "
|
139 |
"undone. Are you sure you want to do this?"
|
@@ -141,19 +182,31 @@ msgstr ""
|
|
141 |
"Masz zamiar dodać znak wodny do wszystkich obrazków w bibliotece. Tej akcji "
|
142 |
"nie można cofnąć. Jesteś pewien, że chcesz to zrobić?"
|
143 |
|
144 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
msgid "Proceed"
|
146 |
msgstr "Kontynuuj"
|
147 |
|
148 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
149 |
msgid "Cancel"
|
150 |
msgstr "Anuluj"
|
151 |
|
152 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
153 |
msgid "Add watermark to all images"
|
154 |
msgstr "Dodaj znak wodny do wszystkich obrazów"
|
155 |
|
156 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
|
|
|
|
|
|
|
|
157 |
msgid ""
|
158 |
"Be carefull with that option. If some images alredy has watermark, it will "
|
159 |
"be added though."
|
@@ -161,6 +214,50 @@ msgstr ""
|
|
161 |
"Bądź ostrożny używając tej opcji. Jeśli któreś zdjęcia posiadają już znak "
|
162 |
"wodny, zostanie on dodany po raz drugi."
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
165 |
msgid "Auto Watermark"
|
166 |
msgstr "Automatyczne dodawanie"
|
@@ -181,28 +278,28 @@ msgstr "Zaznacz typy obrazów, które mają być oznaczane znakiem wodnym"
|
|
181 |
msgid "Image Sizes"
|
182 |
msgstr "Rozmiary obrazów"
|
183 |
|
184 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
185 |
msgid "Select image sizes which should be watermarked"
|
186 |
msgstr "Zaznacz rozmiary obrazów, które mają być oznaczane znakiem wodnym"
|
187 |
|
188 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
189 |
msgid "Watermark Type"
|
190 |
msgstr "Typ znaku wodnego"
|
191 |
|
192 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
193 |
msgid "Image + Text"
|
194 |
msgstr "Obraz i tekst"
|
195 |
|
196 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
197 |
msgid "Choose, whether to apply image, text, or both."
|
198 |
msgstr ""
|
199 |
"Wybierz, czy jako znak wodny zastosować obraz, tekst, czy tekst z obrazem."
|
200 |
|
201 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
202 |
msgid "Jpeg Quality"
|
203 |
msgstr "Jakość jpeg"
|
204 |
|
205 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
206 |
msgid ""
|
207 |
"Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, "
|
208 |
"biggest file)"
|
@@ -210,6 +307,56 @@ msgstr ""
|
|
210 |
"Ustaw jakość jpeg od 0 (gorsza jakość, mniejszy plik) do 100 (najlepsza "
|
211 |
"jakość, największy plik)"
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
214 |
msgid "Watermark Image"
|
215 |
msgstr "Znak wodny"
|
@@ -307,17 +454,17 @@ msgid "Image Offset"
|
|
307 |
msgstr "Offset obrazka"
|
308 |
|
309 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
310 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
311 |
msgid "x"
|
312 |
msgstr ""
|
313 |
|
314 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
315 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
316 |
msgid "y"
|
317 |
msgstr ""
|
318 |
|
319 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
320 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
321 |
msgid ""
|
322 |
"Offset can be defined in pixels (just numeric value) or as percentage (e.g. "
|
323 |
"'33%')"
|
@@ -326,7 +473,7 @@ msgstr ""
|
|
326 |
"'33%')"
|
327 |
|
328 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
329 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
330 |
msgid "Opacity"
|
331 |
msgstr "Nieprzezroczystość"
|
332 |
|
@@ -334,31 +481,40 @@ msgstr "Nieprzezroczystość"
|
|
334 |
msgid "Opacity does not affect the png images with alpha chanel."
|
335 |
msgstr "Ta opcja nie dotyczy obrazów png posiadających kanał alfa."
|
336 |
|
337 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
msgid "Preview"
|
339 |
msgstr "Podgląd"
|
340 |
|
341 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
342 |
msgid "Text Alignment"
|
343 |
msgstr "Wyrównanie tekstu"
|
344 |
|
345 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
346 |
msgid "Text Offset"
|
347 |
msgstr "Offset tekstu"
|
348 |
|
349 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
350 |
msgid "Font"
|
351 |
msgstr "Czcionka"
|
352 |
|
353 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
354 |
msgid "Text Color"
|
355 |
msgstr "Kolor tekstu"
|
356 |
|
357 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
358 |
msgid "Text Size"
|
359 |
msgstr "Rozmiar tekstu"
|
360 |
|
361 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
362 |
msgid "Text Angle"
|
363 |
msgstr "Kąt obrotu tekstu"
|
364 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Watermark 0.5\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-25 23:21+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-08-25 23:31+0100\n"
|
7 |
"Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"Language: Polish\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"X-Generator: Poedit 1.5.4\n"
|
14 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
15 |
+
"X-Poedit-Basepath: /media/szaleq/Data/easy-watermark/trunk\n"
|
16 |
+
"X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk/classes\n"
|
17 |
+
"X-Poedit-SearchPath-1: /media/szaleq/Data/easy-watermark/trunk/views\n"
|
18 |
|
19 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:158
|
20 |
+
msgid "Cheatin’ uh?"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:195
|
24 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
25 |
msgid "Watermark successfully added."
|
26 |
msgstr "Znak wodny został dodany."
|
27 |
|
28 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
29 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
30 |
+
msgid "watermarked"
|
31 |
+
msgstr "ze znakiem wodnym"
|
32 |
+
|
33 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
34 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
35 |
+
msgid "not watermarked"
|
36 |
+
msgstr "bez znaku wodnego"
|
37 |
+
|
38 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:199
|
39 |
+
#, php-format
|
40 |
+
msgid "An Image has been marked as %s."
|
41 |
+
msgstr "Obrazek został oznakowany jako %s."
|
42 |
+
|
43 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:205
|
44 |
msgid "Invalid mime type."
|
45 |
msgstr "Błędny typ mime."
|
46 |
|
47 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:208
|
48 |
msgid "No watermark image selected and no watermark text set."
|
49 |
msgstr "Nie ustawiono obrazu ani tekstu znaku wodnego."
|
50 |
|
51 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:210
|
52 |
msgid "Go to settings page"
|
53 |
msgstr "Przejdź do ustawień"
|
54 |
|
55 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:214
|
56 |
msgid "An error has occurred."
|
57 |
msgstr "Wystąpił błąd."
|
58 |
|
59 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
60 |
msgid ""
|
61 |
"Easy Watermark is active, but requires GD library to work. Please enable "
|
62 |
"this extension."
|
64 |
"Easy Watermark jest aktywny, ale wymaga biblioteki GD do działania. Proszę, "
|
65 |
"włącz to rozszerzenie."
|
66 |
|
67 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
68 |
msgid "Read more"
|
69 |
msgstr "Czytaj więcej"
|
70 |
|
71 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:244
|
72 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:271
|
73 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:661
|
74 |
msgid "Add Watermark"
|
75 |
msgstr "Dodaj znak wodny"
|
76 |
|
77 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:287
|
|
|
78 |
msgid "Add watermark"
|
79 |
msgstr "Dodaj znak wodny"
|
80 |
|
81 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:434
|
82 |
+
#, php-format
|
83 |
+
msgid "No permission to edit file %s. Skipping..."
|
84 |
+
msgstr "Brak uprawnień do edycji pliku %s. Omijanie..."
|
85 |
+
|
86 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:439
|
87 |
#, php-format
|
88 |
msgid "Not supported mime type of %s. Skipping..."
|
89 |
msgstr "Nieobsługiwany typ pliku %s. Omijanie..."
|
90 |
|
91 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:445
|
92 |
#, php-format
|
93 |
msgid "Watermark successfully added to %s"
|
94 |
msgstr "Znak wodny dodany do %s"
|
95 |
|
96 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:630
|
97 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:114
|
98 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
99 |
+
msgid "Easy Watermark"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:645
|
103 |
+
msgid "Status"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
107 |
+
msgid "mark as not watermarked"
|
108 |
+
msgstr "oznacz jako bez znaku wodnego"
|
109 |
+
|
110 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
111 |
+
msgid "mark as watermarked"
|
112 |
+
msgstr "oznacz jako posiadający znak wodny"
|
113 |
+
|
114 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:87
|
115 |
msgid "General"
|
116 |
msgstr "Ogólne"
|
117 |
|
118 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:88
|
119 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:29
|
120 |
msgid "Image"
|
121 |
msgstr "Obraz"
|
122 |
|
123 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:89
|
124 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:30
|
|
|
125 |
msgid "Text"
|
126 |
msgstr "Tekst"
|
127 |
|
128 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:316
|
|
|
|
|
|
|
|
|
|
|
129 |
msgid "Settings"
|
130 |
msgstr "Ustawienia"
|
131 |
|
132 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:329
|
133 |
msgid "Donate"
|
134 |
msgstr "Przekaż dotację"
|
135 |
|
174 |
msgid "Go to Media Library"
|
175 |
msgstr "Idź do biblioteki mediów"
|
176 |
|
177 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:17
|
178 |
msgid ""
|
179 |
"You are about to watermark all images in the library. This action can not be "
|
180 |
"undone. Are you sure you want to do this?"
|
182 |
"Masz zamiar dodać znak wodny do wszystkich obrazków w bibliotece. Tej akcji "
|
183 |
"nie można cofnąć. Jesteś pewien, że chcesz to zrobić?"
|
184 |
|
185 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:19
|
186 |
+
msgid ""
|
187 |
+
"You are about to watermark all images you have uploaded ever. This action "
|
188 |
+
"can not be undone. Are you sure you want to do this?"
|
189 |
+
msgstr ""
|
190 |
+
"Masz zamiar dodać znak wodny do wszystkich obrazków które kiedykolwiek "
|
191 |
+
"wgrałeś. Tej akcji nie można cofnąć. Jesteś pewien, że chcesz to zrobić?"
|
192 |
+
|
193 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
194 |
msgid "Proceed"
|
195 |
msgstr "Kontynuuj"
|
196 |
|
197 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
198 |
msgid "Cancel"
|
199 |
msgstr "Anuluj"
|
200 |
|
201 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:29
|
202 |
msgid "Add watermark to all images"
|
203 |
msgstr "Dodaj znak wodny do wszystkich obrazów"
|
204 |
|
205 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:31
|
206 |
+
msgid "Add watermark to all images uploaded by you"
|
207 |
+
msgstr "Dodaj znak wodny do wszystkich obrazów wgranych przez Ciebie"
|
208 |
+
|
209 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:33
|
210 |
msgid ""
|
211 |
"Be carefull with that option. If some images alredy has watermark, it will "
|
212 |
"be added though."
|
214 |
"Bądź ostrożny używając tej opcji. Jeśli któreś zdjęcia posiadają już znak "
|
215 |
"wodny, zostanie on dodany po raz drugi."
|
216 |
|
217 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:2
|
218 |
+
msgid "Placeholders"
|
219 |
+
msgstr "Symbole zastępcze"
|
220 |
+
|
221 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:4
|
222 |
+
msgid ""
|
223 |
+
"You can use this placeholders in your text watermark, it will be replaced "
|
224 |
+
"with proper value just befor applying watermark."
|
225 |
+
msgstr ""
|
226 |
+
"Możesz użyć tych symboli zastępczych w tekstowym znaku wodnym, będą one "
|
227 |
+
"zamienione na odpowiednią wartość tuż przed zastosowaniem znaku."
|
228 |
+
|
229 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:6
|
230 |
+
msgid "current user login"
|
231 |
+
msgstr "login bieżącego użytkownika"
|
232 |
+
|
233 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:7
|
234 |
+
msgid "current user display name"
|
235 |
+
msgstr "nazwa wyświetlana bieżącego użytkownika"
|
236 |
+
|
237 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:8
|
238 |
+
msgid "current user email address"
|
239 |
+
msgstr "email bierzącego użytkownika"
|
240 |
+
|
241 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:9
|
242 |
+
msgid "site admin email"
|
243 |
+
msgstr "email administratora"
|
244 |
+
|
245 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:10
|
246 |
+
msgid "blog title"
|
247 |
+
msgstr "tytuł bloga"
|
248 |
+
|
249 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:11
|
250 |
+
msgid "blog url"
|
251 |
+
msgstr "url bloga"
|
252 |
+
|
253 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:12
|
254 |
+
msgid "current date (see general settings for date format)"
|
255 |
+
msgstr "bierząca data (zobacz ustawienia generalne)"
|
256 |
+
|
257 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:13
|
258 |
+
msgid "current time"
|
259 |
+
msgstr "bierzący czas"
|
260 |
+
|
261 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
262 |
msgid "Auto Watermark"
|
263 |
msgstr "Automatyczne dodawanie"
|
278 |
msgid "Image Sizes"
|
279 |
msgstr "Rozmiary obrazów"
|
280 |
|
281 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:23
|
282 |
msgid "Select image sizes which should be watermarked"
|
283 |
msgstr "Zaznacz rozmiary obrazów, które mają być oznaczane znakiem wodnym"
|
284 |
|
285 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:26
|
286 |
msgid "Watermark Type"
|
287 |
msgstr "Typ znaku wodnego"
|
288 |
|
289 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:31
|
290 |
msgid "Image + Text"
|
291 |
msgstr "Obraz i tekst"
|
292 |
|
293 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:33
|
294 |
msgid "Choose, whether to apply image, text, or both."
|
295 |
msgstr ""
|
296 |
"Wybierz, czy jako znak wodny zastosować obraz, tekst, czy tekst z obrazem."
|
297 |
|
298 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:36
|
299 |
msgid "Jpeg Quality"
|
300 |
msgstr "Jakość jpeg"
|
301 |
|
302 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:37
|
303 |
msgid ""
|
304 |
"Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, "
|
305 |
"biggest file)"
|
307 |
"Ustaw jakość jpeg od 0 (gorsza jakość, mniejszy plik) do 100 (najlepsza "
|
308 |
"jakość, największy plik)"
|
309 |
|
310 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:39
|
311 |
+
msgid "Date Format"
|
312 |
+
msgstr "Format daty"
|
313 |
+
|
314 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:40
|
315 |
+
msgid "Leave blank to use default date format (see general settings)"
|
316 |
+
msgstr ""
|
317 |
+
"Pozostaw puste by użyć domyślnych ustawień (zobacz ustawienia generalne)"
|
318 |
+
|
319 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:42
|
320 |
+
msgid "Time Format"
|
321 |
+
msgstr "Format czasu"
|
322 |
+
|
323 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:43
|
324 |
+
msgid "Leave blank to use default time format"
|
325 |
+
msgstr "Pozostaw puste by użyć domyślnych ustawień"
|
326 |
+
|
327 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:47
|
328 |
+
msgid "User Roles"
|
329 |
+
msgstr "Role użytkowników"
|
330 |
+
|
331 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:48
|
332 |
+
msgid ""
|
333 |
+
"Select, which user roles can have a permission to apply watermarks (only "
|
334 |
+
"roles with permission to upload files are listed here)"
|
335 |
+
msgstr ""
|
336 |
+
"Wybierz, które role mają prawo dodawania znaku wodnego (wylistowano tylko "
|
337 |
+
"role posiadające uprawnienia do wgrywania obrazków)"
|
338 |
+
|
339 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:59
|
340 |
+
msgid "allow"
|
341 |
+
msgstr "zezwól"
|
342 |
+
|
343 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:60
|
344 |
+
msgid "deny"
|
345 |
+
msgstr "odmów"
|
346 |
+
|
347 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:64
|
348 |
+
msgid "Allow to Auto Watermark"
|
349 |
+
msgstr "Pozwól na automatyczne dodawanie znaku wodnego"
|
350 |
+
|
351 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:65
|
352 |
+
msgid ""
|
353 |
+
"Check this to allow watermarking on upload to every user. If unchecked, "
|
354 |
+
"'Auto Watermark' function will be dependent on above role-based settings."
|
355 |
+
msgstr ""
|
356 |
+
"Zaznacz tą opcję by zezwolić na automatycznie dodawanie znaku wodnego "
|
357 |
+
"wszystkim użytkownikom. Gdy to pole jest odznaczone, funkcja automatycznego "
|
358 |
+
"dodawania będzie zależna od powyższych ustawień dotyczących ról."
|
359 |
+
|
360 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
361 |
msgid "Watermark Image"
|
362 |
msgstr "Znak wodny"
|
454 |
msgstr "Offset obrazka"
|
455 |
|
456 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
457 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:29
|
458 |
msgid "x"
|
459 |
msgstr ""
|
460 |
|
461 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
462 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:31
|
463 |
msgid "y"
|
464 |
msgstr ""
|
465 |
|
466 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
467 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:32
|
468 |
msgid ""
|
469 |
"Offset can be defined in pixels (just numeric value) or as percentage (e.g. "
|
470 |
"'33%')"
|
473 |
"'33%')"
|
474 |
|
475 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
476 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:62
|
477 |
msgid "Opacity"
|
478 |
msgstr "Nieprzezroczystość"
|
479 |
|
481 |
msgid "Opacity does not affect the png images with alpha chanel."
|
482 |
msgstr "Ta opcja nie dotyczy obrazów png posiadających kanał alfa."
|
483 |
|
484 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:2
|
485 |
+
msgid "Watermark Text"
|
486 |
+
msgstr "Tekst znaku wodnego"
|
487 |
+
|
488 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
489 |
+
msgid "You can use placeholders listed on the right side of this page"
|
490 |
+
msgstr ""
|
491 |
+
"Możesz użyć symboli zastępczych wylistowanych w ramce po prawej stronie"
|
492 |
+
|
493 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:7
|
494 |
msgid "Preview"
|
495 |
msgstr "Podgląd"
|
496 |
|
497 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:15
|
498 |
msgid "Text Alignment"
|
499 |
msgstr "Wyrównanie tekstu"
|
500 |
|
501 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:28
|
502 |
msgid "Text Offset"
|
503 |
msgstr "Offset tekstu"
|
504 |
|
505 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:34
|
506 |
msgid "Font"
|
507 |
msgstr "Czcionka"
|
508 |
|
509 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:45
|
510 |
msgid "Text Color"
|
511 |
msgstr "Kolor tekstu"
|
512 |
|
513 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:54
|
514 |
msgid "Text Size"
|
515 |
msgstr "Rozmiar tekstu"
|
516 |
|
517 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:58
|
518 |
msgid "Text Angle"
|
519 |
msgstr "Kąt obrotu tekstu"
|
520 |
|
languages/easy-watermark.pot
CHANGED
@@ -1,91 +1,132 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: Easy Watermark 0.
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2013-
|
6 |
-
"PO-Revision-Date: 2013-
|
7 |
"Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.5.4\n"
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
15 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
16 |
msgid "Watermark successfully added."
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
msgid "Invalid mime type."
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
24 |
msgid "No watermark image selected and no watermark text set."
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
28 |
msgid "Go to settings page"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
32 |
msgid "An error has occurred."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
36 |
msgid ""
|
37 |
"Easy Watermark is active, but requires GD library to work. Please enable "
|
38 |
"this extension."
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
42 |
msgid "Read more"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
46 |
msgid "Add Watermark"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
50 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkPlugin.php:258
|
51 |
msgid "Add watermark"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
55 |
#, php-format
|
56 |
msgid "Not supported mime type of %s. Skipping..."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
60 |
#, php-format
|
61 |
msgid "Watermark successfully added to %s"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
msgid "General"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
69 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
70 |
msgid "Image"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
74 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
75 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
76 |
msgid "Text"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
80 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
81 |
-
msgid "Easy Watermark"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: /media/szaleq/Data/easy-watermark/trunk/lib/EasyWatermarkSettings.php:281
|
85 |
msgid "Settings"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: /media/szaleq/Data/easy-watermark/trunk/
|
89 |
msgid "Donate"
|
90 |
msgstr ""
|
91 |
|
@@ -129,30 +170,82 @@ msgstr ""
|
|
129 |
msgid "Go to Media Library"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
133 |
msgid ""
|
134 |
"You are about to watermark all images in the library. This action can not be "
|
135 |
"undone. Are you sure you want to do this?"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
msgid "Proceed"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
143 |
msgid "Cancel"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
147 |
msgid "Add watermark to all images"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:
|
|
|
|
|
|
|
|
|
151 |
msgid ""
|
152 |
"Be carefull with that option. If some images alredy has watermark, it will "
|
153 |
"be added though."
|
154 |
msgstr ""
|
155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
157 |
msgid "Auto Watermark"
|
158 |
msgstr ""
|
@@ -173,32 +266,76 @@ msgstr ""
|
|
173 |
msgid "Image Sizes"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
177 |
msgid "Select image sizes which should be watermarked"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
181 |
msgid "Watermark Type"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
185 |
msgid "Image + Text"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
189 |
msgid "Choose, whether to apply image, text, or both."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
193 |
msgid "Jpeg Quality"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:
|
197 |
msgid ""
|
198 |
"Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, "
|
199 |
"biggest file)"
|
200 |
msgstr ""
|
201 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
203 |
msgid "Watermark Image"
|
204 |
msgstr ""
|
@@ -288,24 +425,24 @@ msgid "Image Offset"
|
|
288 |
msgstr ""
|
289 |
|
290 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
291 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
292 |
msgid "x"
|
293 |
msgstr ""
|
294 |
|
295 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
296 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
297 |
msgid "y"
|
298 |
msgstr ""
|
299 |
|
300 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
301 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
302 |
msgid ""
|
303 |
"Offset can be defined in pixels (just numeric value) or as percentage (e.g. "
|
304 |
"'33%')"
|
305 |
msgstr ""
|
306 |
|
307 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
308 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
309 |
msgid "Opacity"
|
310 |
msgstr ""
|
311 |
|
@@ -313,31 +450,39 @@ msgstr ""
|
|
313 |
msgid "Opacity does not affect the png images with alpha chanel."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
msgid "Preview"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
321 |
msgid "Text Alignment"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
325 |
msgid "Text Offset"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
329 |
msgid "Font"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
333 |
msgid "Text Color"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
337 |
msgid "Text Size"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:
|
341 |
msgid "Text Angle"
|
342 |
msgstr ""
|
343 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Easy Watermark 0.5\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-25 23:20+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-08-25 23:21+0100\n"
|
7 |
"Last-Translator: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
8 |
"Language-Team: Wojtek Szałkiewicz <wojtek@szalkiewicz.pl>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
+
"X-Poedit-Basepath: /media/szaleq/Data/easy-watermark/trunk\n"
|
15 |
+
"X-Poedit-SearchPath-0: /media/szaleq/Data/easy-watermark/trunk/classes\n"
|
16 |
+
"X-Poedit-SearchPath-1: /media/szaleq/Data/easy-watermark/trunk/views\n"
|
17 |
|
18 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:158
|
19 |
+
msgid "Cheatin’ uh?"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:195
|
23 |
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:10
|
24 |
msgid "Watermark successfully added."
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
28 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
29 |
+
msgid "watermarked"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:198
|
33 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:644
|
34 |
+
msgid "not watermarked"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:199
|
38 |
+
#, php-format
|
39 |
+
msgid "An Image has been marked as %s."
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:205
|
43 |
msgid "Invalid mime type."
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:208
|
47 |
msgid "No watermark image selected and no watermark text set."
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:210
|
51 |
msgid "Go to settings page"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:214
|
55 |
msgid "An error has occurred."
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
59 |
msgid ""
|
60 |
"Easy Watermark is active, but requires GD library to work. Please enable "
|
61 |
"this extension."
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:220
|
65 |
msgid "Read more"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:244
|
69 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:271
|
70 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:661
|
71 |
msgid "Add Watermark"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:287
|
|
|
75 |
msgid "Add watermark"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:434
|
79 |
+
#, php-format
|
80 |
+
msgid "No permission to edit file %s. Skipping..."
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:439
|
84 |
#, php-format
|
85 |
msgid "Not supported mime type of %s. Skipping..."
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:445
|
89 |
#, php-format
|
90 |
msgid "Watermark successfully added to %s"
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:630
|
94 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:114
|
95 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:4
|
96 |
+
msgid "Easy Watermark"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:645
|
100 |
+
msgid "Status"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
104 |
+
msgid "mark as not watermarked"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-plugin.php:652
|
108 |
+
msgid "mark as watermarked"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:87
|
112 |
msgid "General"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:88
|
116 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:29
|
117 |
msgid "Image"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:89
|
121 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:30
|
|
|
122 |
msgid "Text"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:316
|
|
|
|
|
|
|
|
|
|
|
126 |
msgid "Settings"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: /media/szaleq/Data/easy-watermark/trunk/classes/class-ew-settings.php:329
|
130 |
msgid "Donate"
|
131 |
msgstr ""
|
132 |
|
170 |
msgid "Go to Media Library"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:17
|
174 |
msgid ""
|
175 |
"You are about to watermark all images in the library. This action can not be "
|
176 |
"undone. Are you sure you want to do this?"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:19
|
180 |
+
msgid ""
|
181 |
+
"You are about to watermark all images you have uploaded ever. This action "
|
182 |
+
"can not be undone. Are you sure you want to do this?"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
186 |
msgid "Proceed"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:22
|
190 |
msgid "Cancel"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:29
|
194 |
msgid "Add watermark to all images"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:31
|
198 |
+
msgid "Add watermark to all images uploaded by you"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/easy-watermark-page.php:33
|
202 |
msgid ""
|
203 |
"Be carefull with that option. If some images alredy has watermark, it will "
|
204 |
"be added though."
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:2
|
208 |
+
msgid "Placeholders"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:4
|
212 |
+
msgid ""
|
213 |
+
"You can use this placeholders in your text watermark, it will be replaced "
|
214 |
+
"with proper value just befor applying watermark."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:6
|
218 |
+
msgid "current user login"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:7
|
222 |
+
msgid "current user display name"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:8
|
226 |
+
msgid "current user email address"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:9
|
230 |
+
msgid "site admin email"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:10
|
234 |
+
msgid "blog title"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:11
|
238 |
+
msgid "blog url"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:12
|
242 |
+
msgid "current date (see general settings for date format)"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/placeholders.php:13
|
246 |
+
msgid "current time"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:3
|
250 |
msgid "Auto Watermark"
|
251 |
msgstr ""
|
266 |
msgid "Image Sizes"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:23
|
270 |
msgid "Select image sizes which should be watermarked"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:26
|
274 |
msgid "Watermark Type"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:31
|
278 |
msgid "Image + Text"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:33
|
282 |
msgid "Choose, whether to apply image, text, or both."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:36
|
286 |
msgid "Jpeg Quality"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:37
|
290 |
msgid ""
|
291 |
"Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, "
|
292 |
"biggest file)"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:39
|
296 |
+
msgid "Date Format"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:40
|
300 |
+
msgid "Leave blank to use default date format (see general settings)"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:42
|
304 |
+
msgid "Time Format"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:43
|
308 |
+
msgid "Leave blank to use default time format"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:47
|
312 |
+
msgid "User Roles"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:48
|
316 |
+
msgid ""
|
317 |
+
"Select, which user roles can have a permission to apply watermarks (only "
|
318 |
+
"roles with permission to upload files are listed here)"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:59
|
322 |
+
msgid "allow"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:60
|
326 |
+
msgid "deny"
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:64
|
330 |
+
msgid "Allow to Auto Watermark"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-general.php:65
|
334 |
+
msgid ""
|
335 |
+
"Check this to allow watermarking on upload to every user. If unchecked, "
|
336 |
+
"'Auto Watermark' function will be dependent on above role-based settings."
|
337 |
+
msgstr ""
|
338 |
+
|
339 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:3
|
340 |
msgid "Watermark Image"
|
341 |
msgstr ""
|
425 |
msgstr ""
|
426 |
|
427 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:50
|
428 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:29
|
429 |
msgid "x"
|
430 |
msgstr ""
|
431 |
|
432 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:52
|
433 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:31
|
434 |
msgid "y"
|
435 |
msgstr ""
|
436 |
|
437 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:53
|
438 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:32
|
439 |
msgid ""
|
440 |
"Offset can be defined in pixels (just numeric value) or as percentage (e.g. "
|
441 |
"'33%')"
|
442 |
msgstr ""
|
443 |
|
444 |
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-image.php:55
|
445 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:62
|
446 |
msgid "Opacity"
|
447 |
msgstr ""
|
448 |
|
450 |
msgid "Opacity does not affect the png images with alpha chanel."
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:2
|
454 |
+
msgid "Watermark Text"
|
455 |
+
msgstr ""
|
456 |
+
|
457 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:3
|
458 |
+
msgid "You can use placeholders listed on the right side of this page"
|
459 |
+
msgstr ""
|
460 |
+
|
461 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:7
|
462 |
msgid "Preview"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:15
|
466 |
msgid "Text Alignment"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:28
|
470 |
msgid "Text Offset"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:34
|
474 |
msgid "Font"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:45
|
478 |
msgid "Text Color"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:54
|
482 |
msgid "Text Size"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: /media/szaleq/Data/easy-watermark/trunk/views/settings-form-text.php:58
|
486 |
msgid "Text Angle"
|
487 |
msgstr ""
|
488 |
|
lib/EasyWatermark.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Easy Watermark
|
4 |
-
* @version 3.
|
5 |
* @license GPL
|
6 |
* @author Wojtek Szałkiewicz
|
7 |
* @author url http://szalkiewicz.pl
|
@@ -20,9 +20,9 @@
|
|
20 |
* $ew = new EasyWatermark(array(
|
21 |
* 'position_x' => 'left', // can be: left, lft, center, ctr, right, rgt or numeric (respectively 1, 2, 3)
|
22 |
* 'position_y' => 'bottom', // can be: top, middle, mdl, bottom, btm (respectively 1, 2, 3)
|
23 |
-
* 'offset_x' => 100,
|
24 |
* 'offset_y' => '10%', // numeric value for pixels or string ('100px', '20%')
|
25 |
-
* 'opacity' => 20
|
26 |
* ));
|
27 |
*
|
28 |
* $ew->setImagePath('some/path/to/img.jpg')
|
@@ -543,16 +543,17 @@ class EasyWatermark
|
|
543 |
|
544 |
if(isset($newWidth)){
|
545 |
$tmpImage = imagecreatetruecolor($newWidth, $newHeight);
|
546 |
-
if($this->watermarkImageType == 'png' && $this->isAlphaPng($this->watermarkPath)){
|
547 |
// preserve png transparency
|
548 |
-
imagecolortransparent($tmpImage, imagecolorallocatealpha($tmpImage, 0, 0, 0, 127));
|
549 |
imagealphablending($tmpImage, false);
|
550 |
imagesavealpha($tmpImage, true);
|
551 |
}
|
552 |
|
553 |
imagecopyresampled($tmpImage, $this->watermarkImage,
|
554 |
0, 0, 0, 0,
|
555 |
-
$newWidth, $newHeight, $watermarkWidth, $watermarkHeight
|
|
|
556 |
|
557 |
$this->watermarkImage = $tmpImage;
|
558 |
$watermarkWidth = $newWidth;
|
@@ -713,11 +714,21 @@ class EasyWatermark
|
|
713 |
// Create blank image
|
714 |
$this->outputImage = imagecreatetruecolor($imageWidth, $imageHeight);
|
715 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
716 |
imagecopy($this->outputImage, $this->inputImage,
|
717 |
0, 0, 0, 0, $imageWidth, $imageHeight
|
718 |
);
|
719 |
}
|
720 |
|
|
|
|
|
721 |
return $this->outputImage;
|
722 |
}
|
723 |
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Easy Watermark
|
4 |
+
* @version 3.2
|
5 |
* @license GPL
|
6 |
* @author Wojtek Szałkiewicz
|
7 |
* @author url http://szalkiewicz.pl
|
20 |
* $ew = new EasyWatermark(array(
|
21 |
* 'position_x' => 'left', // can be: left, lft, center, ctr, right, rgt or numeric (respectively 1, 2, 3)
|
22 |
* 'position_y' => 'bottom', // can be: top, middle, mdl, bottom, btm (respectively 1, 2, 3)
|
23 |
+
* 'offset_x' => 100, // numeric value for pixels or string ('100px', '20%')
|
24 |
* 'offset_y' => '10%', // numeric value for pixels or string ('100px', '20%')
|
25 |
+
* 'opacity' => 20 // percentage opacit (0 - non visible, 100 - fully visible)
|
26 |
* ));
|
27 |
*
|
28 |
* $ew->setImagePath('some/path/to/img.jpg')
|
543 |
|
544 |
if(isset($newWidth)){
|
545 |
$tmpImage = imagecreatetruecolor($newWidth, $newHeight);
|
546 |
+
if(($this->watermarkImageType == 'png' && $this->isAlphaPng($this->watermarkPath))){
|
547 |
// preserve png transparency
|
548 |
+
// imagecolortransparent($tmpImage, imagecolorallocatealpha($tmpImage, 0, 0, 0, 127));
|
549 |
imagealphablending($tmpImage, false);
|
550 |
imagesavealpha($tmpImage, true);
|
551 |
}
|
552 |
|
553 |
imagecopyresampled($tmpImage, $this->watermarkImage,
|
554 |
0, 0, 0, 0,
|
555 |
+
$newWidth, $newHeight, $watermarkWidth, $watermarkHeight
|
556 |
+
);
|
557 |
|
558 |
$this->watermarkImage = $tmpImage;
|
559 |
$watermarkWidth = $newWidth;
|
714 |
// Create blank image
|
715 |
$this->outputImage = imagecreatetruecolor($imageWidth, $imageHeight);
|
716 |
|
717 |
+
$this->outputMime = !empty($this->outputMime) ? $this->detectMimeType($this->outputMime) : $this->inputImageType;
|
718 |
+
|
719 |
+
if(($this->outputMime == 'png' && $this->isAlphaPng($this->imagePath))){
|
720 |
+
// Preserve opacity for png images
|
721 |
+
imagealphablending($this->outputImage, false);
|
722 |
+
imagesavealpha($this->outputImage, true);
|
723 |
+
}
|
724 |
+
|
725 |
imagecopy($this->outputImage, $this->inputImage,
|
726 |
0, 0, 0, 0, $imageWidth, $imageHeight
|
727 |
);
|
728 |
}
|
729 |
|
730 |
+
imagealphablending($this->outputImage, true);
|
731 |
+
|
732 |
return $this->outputImage;
|
733 |
}
|
734 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: szaleq
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=wojtek%40szalkiewicz%2epl&lc=GB&item_name=Easy%20Watermark%20Wordpress%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
|
4 |
Tags: watermark, image, picture, photo, media, gallery, signature, transparent, upload, admin
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -69,6 +69,9 @@ If 'Scale to Smaller' checkbox is checked, any scaling will be done only for ima
|
|
69 |
Watermark ratio is always preserved, so it can go beyond the image when the 'Scaling Mode' is set to 'Fill'.
|
70 |
With 'Fit to Width' or 'Fit to Height' options watermark dimensions can be set as a percentage in relation to the image dimensions.
|
71 |
|
|
|
|
|
|
|
72 |
== Screenshots ==
|
73 |
|
74 |
1. General settings page
|
@@ -79,6 +82,17 @@ With 'Fit to Width' or 'Fit to Height' options watermark dimensions can be set a
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
= 0.4.4 =
|
83 |
* repaired issue with auto-watermark option
|
84 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=wojtek%40szalkiewicz%2epl&lc=GB&item_name=Easy%20Watermark%20Wordpress%20Plugin¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
|
4 |
Tags: watermark, image, picture, photo, media, gallery, signature, transparent, upload, admin
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 3.6
|
7 |
+
Stable tag: 0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
69 |
Watermark ratio is always preserved, so it can go beyond the image when the 'Scaling Mode' is set to 'Fill'.
|
70 |
With 'Fit to Width' or 'Fit to Height' options watermark dimensions can be set as a percentage in relation to the image dimensions.
|
71 |
|
72 |
+
= What placeholders can I use in text watermark? =
|
73 |
+
All available placeholders are listed in a box titled 'Placeholders' on the text watermark settings page, under the 'About' box.
|
74 |
+
|
75 |
== Screenshots ==
|
76 |
|
77 |
1. General settings page
|
82 |
|
83 |
== Changelog ==
|
84 |
|
85 |
+
= 0.5 =
|
86 |
+
* fixed issue with watermarking not selected image types on upload
|
87 |
+
* png transparency in watermarked images is now preserved
|
88 |
+
* added possibility to disable watermarking feature for particular roles
|
89 |
+
* user which can only add posts (like 'author') can only add watermark to the images uploaded by him
|
90 |
+
* introduced placeholders in text watermark
|
91 |
+
* color picker changed to Iris (integrated with wordpress)
|
92 |
+
* added information about image status (watermarked or not)
|
93 |
+
* added 'Easy Watermark' column in media table and metabox on an image editing page
|
94 |
+
* a lot of 'invisible' changes in the code
|
95 |
+
|
96 |
= 0.4.4 =
|
97 |
* repaired issue with auto-watermark option
|
98 |
|
views/about.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<div class="
|
2 |
<h3><?php _e('About', 'easy-watermark'); ?></h3>
|
3 |
<div class="inside">
|
4 |
-
<p><?php _e('Plugin Version', 'easy-watermark'); ?>: <strong><?php echo
|
5 |
<p><?php _e('Plugin Author', 'easy-watermark'); ?>: <a href="mailto:wojtek@szalkiewicz.pl">Wojtek Szałkiewicz</a></p>
|
6 |
-
<p><?php if(
|
7 |
<a href="http://wordpress.org/extend/plugins/easy-watermark" target="_blank">
|
8 |
<?php _e('Plugin page in WP repository', 'easy-watermark'); ?></a><br/>
|
9 |
<a href="http://wordpress.org/extend/plugins/easy-watermark/faq" target="_blank">
|
@@ -13,4 +13,4 @@
|
|
13 |
<strong><?php _e('Want to buy me a coffee?', 'easy-watermark'); ?></strong>
|
14 |
<?php include dirname(__FILE__) . '/donation.php'; ?>
|
15 |
</div><!-- .inside -->
|
16 |
-
</div
|
1 |
+
<div class="postbox">
|
2 |
<h3><?php _e('About', 'easy-watermark'); ?></h3>
|
3 |
<div class="inside">
|
4 |
+
<p><?php _e('Plugin Version', 'easy-watermark'); ?>: <strong><?php echo EW_Plugin::getVersion();?></strong></p>
|
5 |
<p><?php _e('Plugin Author', 'easy-watermark'); ?>: <a href="mailto:wojtek@szalkiewicz.pl">Wojtek Szałkiewicz</a></p>
|
6 |
+
<p><?php if(EW_Plugin::isGDEnabled()) : _e('GD library is enabled.', 'easy-watermark'); else : ?><span style="color:red;"><?php _e('GD library is not available! Easy Watermark can\'t work without it.', 'easy-watermark'); ?></span><?php endif; ?></p>
|
7 |
<a href="http://wordpress.org/extend/plugins/easy-watermark" target="_blank">
|
8 |
<?php _e('Plugin page in WP repository', 'easy-watermark'); ?></a><br/>
|
9 |
<a href="http://wordpress.org/extend/plugins/easy-watermark/faq" target="_blank">
|
13 |
<strong><?php _e('Want to buy me a coffee?', 'easy-watermark'); ?></strong>
|
14 |
<?php include dirname(__FILE__) . '/donation.php'; ?>
|
15 |
</div><!-- .inside -->
|
16 |
+
</div>
|
views/easy-watermark-page.php
CHANGED
@@ -13,14 +13,24 @@
|
|
13 |
echo $output;
|
14 |
else: ?>
|
15 |
<div id="message" class="updated below-h2">
|
|
|
16 |
<p><?php _e('You are about to watermark all images in the library. This action can not be undone. Are you sure you want to do this?', 'easy-watermark'); ?></p>
|
|
|
|
|
|
|
17 |
</div>
|
18 |
<a class="button-primary" href="<?php echo wp_nonce_url(admin_url('/upload.php?page=easy-watermark&watermark_all=1'), 'watermark_all_confirmed'); ?>"><?php _e('Proceed', 'easy-watermark'); ?></a> <a class="button-secondary" href="<?php echo admin_url('/upload.php?page=easy-watermark'); ?>"><?php _e('Cancel', 'easy-watermark'); ?></a>
|
19 |
<?php endif;
|
20 |
else :
|
21 |
?>
|
22 |
<br/>
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
<?php
|
25 |
endif;
|
26 |
?>
|
13 |
echo $output;
|
14 |
else: ?>
|
15 |
<div id="message" class="updated below-h2">
|
16 |
+
<?php if(current_user_can('edit_others_posts')): ?>
|
17 |
<p><?php _e('You are about to watermark all images in the library. This action can not be undone. Are you sure you want to do this?', 'easy-watermark'); ?></p>
|
18 |
+
<?php else : ?>
|
19 |
+
<p><?php _e('You are about to watermark all images you have uploaded ever. This action can not be undone. Are you sure you want to do this?', 'easy-watermark'); ?></p>
|
20 |
+
<?php endif; ?>
|
21 |
</div>
|
22 |
<a class="button-primary" href="<?php echo wp_nonce_url(admin_url('/upload.php?page=easy-watermark&watermark_all=1'), 'watermark_all_confirmed'); ?>"><?php _e('Proceed', 'easy-watermark'); ?></a> <a class="button-secondary" href="<?php echo admin_url('/upload.php?page=easy-watermark'); ?>"><?php _e('Cancel', 'easy-watermark'); ?></a>
|
23 |
<?php endif;
|
24 |
else :
|
25 |
?>
|
26 |
<br/>
|
27 |
+
<?php
|
28 |
+
if(current_user_can('edit_others_posts'))
|
29 |
+
$link_text = __('Add watermark to all images', 'easy-watermark');
|
30 |
+
else
|
31 |
+
$link_text = __('Add watermark to all images uploaded by you', 'easy-watermark');
|
32 |
+
?>
|
33 |
+
<a class="button-primary" href="<?php echo wp_nonce_url(admin_url('/upload.php?page=easy-watermark&watermark_all=1'), 'watermark_all'); ?>"><?php echo $link_text ?></a><p class="description"><?php _e('Be carefull with that option. If some images alredy has watermark, it will be added though.', 'easy-watermark'); ?></p>
|
34 |
<?php
|
35 |
endif;
|
36 |
?>
|
views/placeholders.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="postbox">
|
2 |
+
<h3><?php _e('Placeholders', 'easy-watermark'); ?></h3>
|
3 |
+
<div class="inside">
|
4 |
+
<p class="description"><?php _e('You can use this placeholders in your text watermark, it will be replaced with proper value just befor applying watermark.', 'easy-watermark'); ?></p>
|
5 |
+
<table class="widefat"><tbody>
|
6 |
+
<tr><td>%user%</td><td><?php _e('current user login', 'easy-watermark'); ?></td></tr>
|
7 |
+
<tr><td>%user_name%</td><td><?php _e('current user display name', 'easy-watermark'); ?></td></tr>
|
8 |
+
<tr><td>%user_email%</td><td><?php _e('current user email address', 'easy-watermark'); ?></td></tr>
|
9 |
+
<tr><td>%admin_email%</td><td><?php _e('site admin email', 'easy-watermark'); ?></td></tr>
|
10 |
+
<tr><td>%blog_name%</td><td><?php _e('blog title', 'easy-watermark'); ?></td></tr>
|
11 |
+
<tr><td>%blog_url%</td><td><?php _e('blog url', 'easy-watermark'); ?></td></tr>
|
12 |
+
<tr><td>%date%</td><td><?php _e('current date (see general settings for date format)', 'easy-watermark'); ?></td></tr>
|
13 |
+
<tr><td>%time%</td><td><?php _e('current time', 'easy-watermark'); ?></td></tr>
|
14 |
+
</tbody></table>
|
15 |
+
</div><!-- .inside -->
|
16 |
+
</div>
|
views/settings-form-general.php
CHANGED
@@ -36,4 +36,32 @@ foreach($_wp_additional_image_sizes as $sizeName => $size) : ?>
|
|
36 |
<tr><th scope="row"><?php _e('Jpeg Quality', 'easy-watermark'); ?></th><td>
|
37 |
<input type="text" size="3" name="easy-watermark-settings-general[jpg_quality]" id="ew-size" value="<?php echo $jpg_quality; ?>" /><p class="description"><?php _e('Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, biggest file)', 'easy-watermark'); ?></p>
|
38 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
</table>
|
36 |
<tr><th scope="row"><?php _e('Jpeg Quality', 'easy-watermark'); ?></th><td>
|
37 |
<input type="text" size="3" name="easy-watermark-settings-general[jpg_quality]" id="ew-size" value="<?php echo $jpg_quality; ?>" /><p class="description"><?php _e('Set jpeg quality from 0 (worst quality, smaller file) to 100 (best quality, biggest file)', 'easy-watermark'); ?></p>
|
38 |
</td>
|
39 |
+
<tr valign="top"><th scope="row"><label for="easy-watermark-date-format"><?php _e('Date Format', 'easy-watermark'); ?></label></th>
|
40 |
+
<td><input size="5" id="easy-watermark-date-format" name="easy-watermark-settings-general[date_format]" type="text" value="<?php echo $date_format; ?>" /><p class="description"><?php _e('Leave blank to use default date format (see general settings)', 'easy-watermark'); ?></p></td>
|
41 |
+
</tr>
|
42 |
+
<tr valign="top"><th scope="row"><label for="easy-watermark-time-format"><?php _e('Time Format', 'easy-watermark'); ?></label></th>
|
43 |
+
<td><input size="5" id="easy-watermark-time-format" name="easy-watermark-settings-general[time_format]" type="text" value="<?php echo $time_format; ?>" /><p class="description"><?php _e('Leave blank to use default time format', 'easy-watermark'); ?></p></td>
|
44 |
+
</tr>
|
45 |
+
</table>
|
46 |
+
<table class="form-table">
|
47 |
+
<h3><?php _e('User Roles', 'easy-watermark'); ?></h3>
|
48 |
+
<p class="description"><?php _e('Select, which user roles can have a permission to apply watermarks (only roles with permission to upload files are listed here)', 'easy-watermark'); ?></p>
|
49 |
+
<?php
|
50 |
+
$roles = $this->plugin->getRoles();
|
51 |
+
|
52 |
+
foreach($roles as $role => $name):
|
53 |
+
$name = translate_user_role($name);
|
54 |
+
|
55 |
+
$allowed = isset($allowed_roles[$role]) ? (int) $allowed_roles[$role] : 0;
|
56 |
+
?>
|
57 |
+
<tr valign="top"><th scope="row"><label for="easy-watermark-role-<?php echo $role ?>"><?php echo $name ?></label></th>
|
58 |
+
<td><select id="easy-watermark-role-<?php echo $role ?>" name="easy-watermark-settings-general[allowed_roles][<?php echo $role; ?>]">
|
59 |
+
<option <?php selected(1, $allowed); ?> value="1"><?php _e("allow", 'easy-watermark'); ?></option>
|
60 |
+
<option <?php selected(0, $allowed); ?> value="0"><?php _e('deny', 'easy-watermark'); ?></option>
|
61 |
+
</select></td>
|
62 |
+
</tr>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
<tr valign="top"><th scope="row"><?php _e('Allow to Auto Watermark', 'easy-watermark'); ?></th>
|
65 |
+
<td><label for="easy-watermark-autoadd-perm"><input id="easy-watermark-autoadd-perm" name="easy-watermark-settings-general[auto_add_perm]" type="checkbox" value="1" <?php checked('1', $auto_add_perm); ?> /> <?php _e("Check this to allow watermarking on upload to every user. If unchecked, 'Auto Watermark' function will be dependent on above role-based settings.", 'easy-watermark'); ?></label></td>
|
66 |
+
</tr>
|
67 |
</table>
|
views/settings-form-text.php
CHANGED
@@ -1,15 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
<table class="form-table">
|
3 |
-
<tr><th scope="row"><?php _e('Text', 'easy-watermark'); ?></th><td>
|
4 |
-
<input type="text" value="<?php echo $text; ?>" id="ew-text" name="easy-watermark-settings-text[text]" />
|
5 |
-
</td></tr>
|
6 |
-
<?php $class = empty($text) ? ' class="hidden"' : ''; ?>
|
7 |
-
<?php if(EasyWatermarkPlugin::isGDEnabled()) : ?>
|
8 |
-
<tr<?php echo $class; ?> id="ew-preview-row"><th scope="row"><?php _e('Preview', 'easy-watermark'); ?></th><td>
|
9 |
-
<div id="text-preview">
|
10 |
-
<img id="ew-text-preview" src="<?php echo admin_url('options-general.php?page=easy-watermark-settings&tp=1'); ?>">
|
11 |
-
</div>
|
12 |
-
</td></tr>
|
13 |
<?php endif; ?>
|
14 |
<tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text Alignment', 'easy-watermark'); ?></th><td>
|
15 |
<div id="alignmentbox">
|
@@ -42,7 +43,13 @@
|
|
42 |
</select>
|
43 |
</td></tr>
|
44 |
<tr><th scope="row"><?php _e('Text Color', 'easy-watermark'); ?></th><td>
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
</td>
|
47 |
<tr><th scope="row"><?php _e('Text Size', 'easy-watermark'); ?></th><td>
|
48 |
<input type="text" size="3" name="easy-watermark-settings-text[size]" id="ew-size" value="<?php echo $size; ?>" /> pt
|
@@ -57,3 +64,51 @@
|
|
57 |
</td>
|
58 |
</tr>
|
59 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="titlediv">
|
2 |
+
<input type="text" value="<?php echo $text; ?>" id="title" placeholder="<?php _e('Watermark Text', 'easy-watermark'); ?>" name="easy-watermark-settings-text[text]" />
|
3 |
+
<p class="description"><?php _e('You can use placeholders listed on the right side of this page', 'easy-watermark'); ?></p>
|
4 |
+
</div>
|
5 |
+
<?php $class = empty($text) ? ' class="hidden"' : ''; ?>
|
6 |
+
<?php if(EW_Plugin::isGDEnabled()) : ?>
|
7 |
+
<div<?php echo $class; ?> id="ew-preview-row"><?php _e('Preview', 'easy-watermark'); ?><br/>
|
8 |
+
<div id="text-preview" style="width:100%; overflow:auto;">
|
9 |
+
<img id="ew-text-preview" src="<?php echo admin_url('options-general.php?page=easy-watermark-settings&tp=1'); ?>">
|
10 |
+
</div>
|
11 |
+
</div>
|
12 |
|
13 |
<table class="form-table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
<?php endif; ?>
|
15 |
<tr valign="top" class="watermark-options"><th scope="row"><?php _e('Text Alignment', 'easy-watermark'); ?></th><td>
|
16 |
<div id="alignmentbox">
|
43 |
</select>
|
44 |
</td></tr>
|
45 |
<tr><th scope="row"><?php _e('Text Color', 'easy-watermark'); ?></th><td>
|
46 |
+
<?php
|
47 |
+
$c = rgbToHsl($color);
|
48 |
+
if($c[2] < 0.5) $txtcolor = 'white';
|
49 |
+
else $txtcolor = 'black';
|
50 |
+
?>
|
51 |
+
<input style="background-color:<?php echo $color; ?>;color:<?php echo $txtcolor; ?>" type="text" maxlength="7" size="7" name="easy-watermark-settings-text[color]" id="ew-color" value="<?php echo $color; ?>" />
|
52 |
+
<!--<div id="colorselector"><div style="background-color:#<?php echo $color; ?>"></div></div> -->
|
53 |
</td>
|
54 |
<tr><th scope="row"><?php _e('Text Size', 'easy-watermark'); ?></th><td>
|
55 |
<input type="text" size="3" name="easy-watermark-settings-text[size]" id="ew-size" value="<?php echo $size; ?>" /> pt
|
64 |
</td>
|
65 |
</tr>
|
66 |
</table>
|
67 |
+
|
68 |
+
<?php function rgbToHsl($r, $g = null, $b = null){
|
69 |
+
if(empty($g)){
|
70 |
+
if(strpos($r, '#') === 0) $r = substr($r, 1);
|
71 |
+
$g = hexdec(substr($r, 2, 2));
|
72 |
+
$b = hexdec(substr($r, 4, 2));
|
73 |
+
$r = hexdec(substr($r, 0, 2));
|
74 |
+
}
|
75 |
+
|
76 |
+
$oldR = $r;
|
77 |
+
$oldG = $g;
|
78 |
+
$oldB = $b;
|
79 |
+
|
80 |
+
$r /= 255;
|
81 |
+
$g /= 255;
|
82 |
+
$b /= 255;
|
83 |
+
|
84 |
+
$max = max( $r, $g, $b );
|
85 |
+
$min = min( $r, $g, $b );
|
86 |
+
|
87 |
+
$h;
|
88 |
+
$s;
|
89 |
+
$l = ( $max + $min ) / 2;
|
90 |
+
$d = $max - $min;
|
91 |
+
|
92 |
+
if( $d == 0 ){
|
93 |
+
$h = $s = 0; // achromatic
|
94 |
+
} else {
|
95 |
+
$s = $d / ( 1 - abs( 2 * $l - 1 ) );
|
96 |
+
|
97 |
+
switch( $max ){
|
98 |
+
case $r:
|
99 |
+
$h = 60 * fmod( ( ( $g - $b ) / $d ), 6 );
|
100 |
+
break;
|
101 |
+
|
102 |
+
case $g:
|
103 |
+
$h = 60 * ( ( $b - $r ) / $d + 2 );
|
104 |
+
break;
|
105 |
+
|
106 |
+
case $b:
|
107 |
+
$h = 60 * ( ( $r - $g ) / $d + 4 );
|
108 |
+
break;
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
return array( $h, $s, $l );
|
113 |
+
}
|
114 |
+
?>
|
views/settings-page.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div class="wrap easy-watermark">
|
2 |
<div class="has-right-sidebar">
|
3 |
-
<?php include dirname(__FILE__) . EWDS . '
|
4 |
<div id="post-body-content" class="has-sidebar-content">
|
5 |
<?php screen_icon(); ?>
|
6 |
<h2><?php _e('Easy Watermark Settings', 'easy-watermark'); ?></h2>
|
1 |
<div class="wrap easy-watermark">
|
2 |
<div class="has-right-sidebar">
|
3 |
+
<?php include dirname(__FILE__) . EWDS . 'settings-sidebar.php'; ?>
|
4 |
<div id="post-body-content" class="has-sidebar-content">
|
5 |
<?php screen_icon(); ?>
|
6 |
<h2><?php _e('Easy Watermark Settings', 'easy-watermark'); ?></h2>
|
views/settings-sidebar.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="metabox-holder inner-sidebar">
|
2 |
+
<?php include dirname(__FILE__) . EWDS . 'about.php'; ?>
|
3 |
+
<?php if($current_tab == 'text')
|
4 |
+
include dirname(__FILE__) . EWDS . 'placeholders.php'; ?>
|
5 |
+
</div><!-- .metabox-holder -->
|