Enable Media Replace - Version 3.0

Version Description

  • Updated for WordPress 4.0
  • Now inheriting permissions of the replaced files, Thank you Fiwad
Download this release

Release Info

Developer MungoBBQ
Plugin Icon 128x128 Enable Media Replace
Version 3.0
Comparing to
See all releases

Code changes from version 2.9.6 to 3.0

LICENSE ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ {description}
294
+ Copyright (C) {year} {fullname}
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ {signature of Ty Coon}, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Enable Media Replace
2
+
3
+ This plugin allows you to replace a file in your media library by uploading a new file in its place. No more deleting, renaming and re-uploading files!
4
+
5
+ ## A real timesaver
6
+
7
+ Don't you find it tedious and complicated to have to first delete a file and then upload one with the exact same name every time you want to update an image or any uploaded file inside the WordPress media library?
8
+
9
+ Well, no longer!
10
+
11
+ Now you'll be able to replace any uploaded file from the media "edit" view, where it should be. Media replacement can be done in one of two ways:
12
+
13
+ ## It's simple to replace a file
14
+
15
+ 1. Just replace the file. This option requires you to upload a file of the same type as the one you are replacing. The name of the attachment will stay the same no matter what the file you upload is called.
16
+ 1. Replace the file, use new file name and update all links. If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file will be updated to point to the new file name.
17
+
18
+ This plugin is very powerful and a must-have for any larger sites built with WordPress.
19
+
20
+ ## Display file modification time
21
+
22
+ There is a shortcode available which picks up the file modification date and displays it in a post or a page. The code is:
23
+ `[file_modified id=XX format=XXXX]` where the "id" is required and the "format" is optional and defaults to your current WordPress settings for date and time format.
24
+
25
+ So `[file_modified id=870]` would display the last time the file with ID 870 was updated on your site. To get the ID for a file, check the URL when editing a file in the media library (see screenshot #4)
26
+
27
+ If you want more control over the format used to display the time, you can use the format option, so `[file_modified id=870 format=Y-m-d]` would display the file modification date but not the time. The format string uses [standard PHP date() formatting tags](http://php.net/manual/en/function.date.php).
28
+
29
+ ***
30
+
31
+ See [Enable Media Replace](http://wordpress.org/plugins/enable-media-replace/) at WordPress.org for more information.
assets/screenshot-1.png ADDED
Binary file
assets/screenshot-2.png ADDED
Binary file
assets/screenshot-3.png ADDED
Binary file
assets/screenshot-4.png ADDED
Binary file
enable-media-replace.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Enable Media Replace
4
  Plugin URI: http://www.mansjonasson.se/enable-media-replace
5
  Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library.
6
- Version: 2.9.6
7
  Author: Måns Jonasson
8
  Author URI: http://www.mansjonasson.se
9
 
@@ -28,7 +28,8 @@ Developed for .SE (Stiftelsen för Internetinfrastruktur) - http://www.iis.se
28
  add_action('admin_init', 'enable_media_replace_init');
29
  add_action('admin_menu', 'emr_menu');
30
  add_filter('attachment_fields_to_edit', 'enable_media_replace', 10, 2);
31
- add_filter('media_row_actions', 'add_media_action', 10, 2);
 
32
 
33
  add_shortcode('file_modified', 'emr_get_modified_date');
34
 
@@ -37,7 +38,7 @@ add_shortcode('file_modified', 'emr_get_modified_date');
37
  * To suppress it in the menu we give it an empty menu title.
38
  */
39
  function emr_menu() {
40
- add_submenu_page(NULL, __("Replace media", "enable-media-replace"), '','upload_files', __FILE__, 'emr_options');
41
  }
42
 
43
  /**
@@ -45,7 +46,7 @@ function emr_menu() {
45
  * Only languages files needs loading during init.
46
  */
47
  function enable_media_replace_init() {
48
- load_plugin_textdomain( 'enable-media-replace', false, dirname( plugin_basename( __FILE__ ) ) );
49
  }
50
 
51
  /**
3
  Plugin Name: Enable Media Replace
4
  Plugin URI: http://www.mansjonasson.se/enable-media-replace
5
  Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library.
6
+ Version: 3.0
7
  Author: Måns Jonasson
8
  Author URI: http://www.mansjonasson.se
9
 
28
  add_action('admin_init', 'enable_media_replace_init');
29
  add_action('admin_menu', 'emr_menu');
30
  add_filter('attachment_fields_to_edit', 'enable_media_replace', 10, 2);
31
+ // Removing because media_row_actions no longer supported in media modal in 4.0
32
+ //add_filter('media_row_actions', 'add_media_action', 10, 2);
33
 
34
  add_shortcode('file_modified', 'emr_get_modified_date');
35
 
38
  * To suppress it in the menu we give it an empty menu title.
39
  */
40
  function emr_menu() {
41
+ add_submenu_page(NULL, __("Replace media", "enable-media-replace"), '','upload_files', 'enable-media-replace/enable-media-replace', 'emr_options');
42
  }
43
 
44
  /**
46
  * Only languages files needs loading during init.
47
  */
48
  function enable_media_replace_init() {
49
+ load_plugin_textdomain( 'enable-media-replace', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
50
  }
51
 
52
  /**
languages/enable-media-replace-da_DK.mo ADDED
Binary file
languages/enable-media-replace-da_DK.po ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-13 14:57+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Michael Bering Petersen <michaelbering@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: enable-media-replace.php:40
17
+ #: enable-media-replace.php:68
18
+ msgid "Replace media"
19
+ msgstr "Udskift media"
20
+
21
+ #: enable-media-replace.php:68
22
+ msgid "Upload a new file"
23
+ msgstr "Upload en ny fil"
24
+
25
+ #: enable-media-replace.php:68
26
+ msgid "To replace the current file, click the link and upload a replacement."
27
+ msgstr "Hvis du ønsker at udskifte den aktuelle fil - klik på linket og upload den nye fil."
28
+
29
+ #: popup.php:14
30
+ #: upload.php:21
31
+ msgid "You do not have permission to upload files."
32
+ msgstr "Du har ikke tilladelse til at uploade filer."
33
+
34
+ #: popup.php:30
35
+ msgid "Replace Media Upload"
36
+ msgstr "Replace Media Upload"
37
+
38
+ #: popup.php:41
39
+ msgid "NOTE: You are about to replace the media file"
40
+ msgstr "OBS: Du er nu ved at overskrive filen,"
41
+
42
+ #: popup.php:41
43
+ msgid "There is no undo. Think about it!"
44
+ msgstr "Der er ingen mulighed for at fortryde, så tænkt dig godt om inden du accepterer."
45
+
46
+ #: popup.php:43
47
+ msgid "Choose a file to upload from your computer"
48
+ msgstr "Vælg den fil du ønsker at uploade fra din computer."
49
+
50
+ #: popup.php:47
51
+ msgid "Select media replacement type:"
52
+ msgstr "Vælg media type:"
53
+
54
+ #: popup.php:49
55
+ msgid "Just replace the file"
56
+ msgstr "Udskift filen"
57
+
58
+ #: popup.php:50
59
+ msgid "Note: This option requires you to upload a file of the same type ("
60
+ msgstr "OBS: Denne mulighed kræver at du uploader en fil af samme type ("
61
+
62
+ #: popup.php:50
63
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
64
+ msgstr ") som den du overskriver. Navnet på filen vil forblive det samme ("
65
+
66
+ #: popup.php:50
67
+ msgid ") no matter what the file you upload is called."
68
+ msgstr ") uanset hvad den fil du uploader hedder."
69
+
70
+ #: popup.php:52
71
+ msgid "Replace the file, use new file name and update all links"
72
+ msgstr "Overskriv filen, brug det nye fil navn og opdater alle links-"
73
+
74
+ #: popup.php:53
75
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
76
+ msgstr "OBS: Hvis du vælger denne mulighed - vil filnavnet og filtypen som du er ved at uploade overskrive den gamle fil. Alle links der peger på den nuværende fil ("
77
+
78
+ #: popup.php:53
79
+ msgid ") will be updated to point to the new file name."
80
+ msgstr ") vil blive opdateret så de peger på den nye fil."
81
+
82
+ #: popup.php:55
83
+ msgid "Upload"
84
+ msgstr "Upload"
85
+
86
+ #: popup.php:55
87
+ msgid "Cancel"
88
+ msgstr "Fortryd"
89
+
languages/enable-media-replace-de_DE.mo ADDED
Binary file
languages/enable-media-replace-de_DE.po ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-13 14:57+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Martin Lettner <m.lettner@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: enable-media-replace.php:40
17
+ #: enable-media-replace.php:68
18
+ msgid "Replace media"
19
+ msgstr "Datei ersetzen"
20
+
21
+ #: enable-media-replace.php:68
22
+ msgid "Upload a new file"
23
+ msgstr "Eine neue Datei hochladen"
24
+
25
+ #: enable-media-replace.php:68
26
+ msgid "To replace the current file, click the link and upload a replacement."
27
+ msgstr "Eine neue Datei hochladen, die die aktuelle ersetzen soll."
28
+
29
+ #: popup.php:14
30
+ #: upload.php:21
31
+ msgid "You do not have permission to upload files."
32
+ msgstr "Sie haben nicht die benötigten Rechte um Dateien hochzuladen."
33
+
34
+ #: popup.php:30
35
+ msgid "Replace Media Upload"
36
+ msgstr "Medien-Datei ersetzen"
37
+
38
+ #: popup.php:41
39
+ msgid "NOTE: You are about to replace the media file"
40
+ msgstr "HINWEIS: Sie sind dabei, eine Datei in der Mediathek zu ersetzen"
41
+
42
+ #: popup.php:41
43
+ msgid "There is no undo. Think about it!"
44
+ msgstr "Diese Aktion kann nicht rückgängig gemacht werden!"
45
+
46
+ #: popup.php:43
47
+ msgid "Choose a file to upload from your computer"
48
+ msgstr "Datei vom Computer auswählen:"
49
+
50
+ #: popup.php:47
51
+ msgid "Select media replacement type:"
52
+ msgstr "Wählen Sie die gewünschte Aktion:"
53
+
54
+ #: popup.php:49
55
+ msgid "Just replace the file"
56
+ msgstr "Datei einfach ersetzen"
57
+
58
+ #: popup.php:50
59
+ msgid "Note: This option requires you to upload a file of the same type ("
60
+ msgstr "Hinweis: Die Datei muss vom selben Dateityp sein ("
61
+
62
+ #: popup.php:50
63
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
64
+ msgstr ") wie die Datei, die Sie ersetzen. Der Name der der Datei bleibt erhalten ("
65
+
66
+ #: popup.php:50
67
+ msgid ") no matter what the file you upload is called."
68
+ msgstr "), ganz egal wie die neue Datei heißt."
69
+
70
+ #: popup.php:52
71
+ msgid "Replace the file, use new file name and update all links"
72
+ msgstr "Datei ersetzen, aber neuen Dateinamen verwenden und alle Links automatisch aktualisieren"
73
+
74
+ #: popup.php:53
75
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
76
+ msgstr "Hinweis: Der Name der neuen Datei wird die alte ersetzen. Alle Verweise auf die aktuelle Datei ("
77
+
78
+ #: popup.php:53
79
+ msgid ") will be updated to point to the new file name."
80
+ msgstr ") werden auf die neue aktualisiert."
81
+
82
+ #: popup.php:55
83
+ msgid "Upload"
84
+ msgstr "Hochladen"
85
+
86
+ #: popup.php:55
87
+ msgid "Cancel"
88
+ msgstr "Abbrechen"
89
+
languages/enable-media-replace-fr_FR.mo ADDED
Binary file
languages/enable-media-replace-fr_FR.po ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Enable Media Replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-03-24 10:57+0100\n"
6
+ "PO-Revision-Date: 2011-03-24 11:41+0100\n"
7
+ "Last-Translator: François Collette <francois.collette@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: enable-media-replace.php:39
17
+ #: enable-media-replace.php:67
18
+ msgid "Replace media"
19
+ msgstr "Remplacer le média"
20
+
21
+ #: enable-media-replace.php:67
22
+ msgid "Upload a new file"
23
+ msgstr "Choisir le nouveau fichier"
24
+
25
+ #: enable-media-replace.php:67
26
+ msgid "To replace the current file, click the link and upload a replacement."
27
+ msgstr "Pour remplacer le fichier actuel, cliquez ci-dessus et choisissez le nouveau fichier."
28
+
29
+ #: popup.php:14
30
+ #: upload.php:3
31
+ msgid "You do not have permission to upload files."
32
+ msgstr "Vous n'avez pas la permission d'envoyer des fichiers."
33
+
34
+ #: popup.php:30
35
+ msgid "Replace Media Upload"
36
+ msgstr "Remplacement de média"
37
+
38
+ #: popup.php:46
39
+ msgid "NOTE: You are about to replace the media file"
40
+ msgstr "ATTENTION : vous vous apprêtez à remplacer le fichier"
41
+
42
+ #: popup.php:46
43
+ msgid "There is no undo. Think about it!"
44
+ msgstr "Cette opération est irréversible. Soyez sûr(e) de vous !"
45
+
46
+ #: popup.php:48
47
+ msgid "Choose a file to upload from your computer"
48
+ msgstr "Envoyez un fichier depuis votre ordinateur :"
49
+
50
+ #: popup.php:52
51
+ msgid "Select media replacement type:"
52
+ msgstr "Choisissez la méthode de remplacement :"
53
+
54
+ #: popup.php:54
55
+ msgid "Just replace the file"
56
+ msgstr "Remplacer le fichier seulement"
57
+
58
+ #: popup.php:55
59
+ msgid "Note: This option requires you to upload a file of the same type ("
60
+ msgstr "Avec cette option, vous devez choisir un fichier du même type ("
61
+
62
+ #: popup.php:55
63
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
64
+ msgstr ") que le précédent. Le nom du fichier actuel ("
65
+
66
+ #: popup.php:55
67
+ msgid ") no matter what the file you upload is called."
68
+ msgstr ") sera conservé, quel que soit le nom de votre nouveau fichier."
69
+
70
+ #: popup.php:57
71
+ msgid "Replace the file, use new file name and update all links"
72
+ msgstr "Remplacer le fichier, utiliser le nouveau nom de fichier et mettre à jour tous les liens"
73
+
74
+ #: popup.php:58
75
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
76
+ msgstr "Avec cette option, le nom et le type de votre nouveau fichier vont remplacer ceux du fichier actuel. Tous les liens vers celui-ci ("
77
+
78
+ #: popup.php:58
79
+ msgid ") will be updated to point to the new file name."
80
+ msgstr ") seront mis à jour selon le nouveau nom du fichier."
81
+
82
+ #: popup.php:60
83
+ msgid "Upload"
84
+ msgstr "Envoyer"
85
+
86
+ #: popup.php:60
87
+ msgid "Cancel"
88
+ msgstr "Annuler"
89
+
90
+ #: upload.php:35
91
+ msgid "File type does not meet security guidelines. Try another."
92
+ msgstr "Ce type de fichier est incompatible avec les règles de sécurité. Essayez-en un autre."
93
+
languages/enable-media-replace-it_IT.mo ADDED
Binary file
languages/enable-media-replace-it_IT.po ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Enable Media Replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-03-24 10:57+0100\n"
6
+ "PO-Revision-Date: 2012-11-27 12:03+0100\n"
7
+ "Last-Translator: Marco <marco@blackstudio.it>\n"
8
+ "Language-Team: Black Studio <info@blackstudio.it>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: Italian\n"
15
+ "X-Poedit-Country: ITALY\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: enable-media-replace.php:39
19
+ #: enable-media-replace.php:67
20
+ msgid "Replace media"
21
+ msgstr "Sostituisci file"
22
+
23
+ #: enable-media-replace.php:67
24
+ msgid "Upload a new file"
25
+ msgstr "Carica un nuovo file"
26
+
27
+ #: enable-media-replace.php:67
28
+ msgid "To replace the current file, click the link and upload a replacement."
29
+ msgstr "Per sostituire il file corrente, clicca il link e carica un file sostitutivo."
30
+
31
+ #: popup.php:14
32
+ #: upload.php:3
33
+ msgid "You do not have permission to upload files."
34
+ msgstr "Non hai sufficienti permessi per caricare file."
35
+
36
+ #: popup.php:30
37
+ msgid "Replace Media Upload"
38
+ msgstr "Caricamento file sostitutivo"
39
+
40
+ #: popup.php:46
41
+ msgid "NOTE: You are about to replace the media file"
42
+ msgstr "NOTA: Stai per sostituire il file"
43
+
44
+ #: popup.php:46
45
+ msgid "There is no undo. Think about it!"
46
+ msgstr "Questa operazione non è reversibile. Fai attenzione!"
47
+
48
+ #: popup.php:48
49
+ msgid "Choose a file to upload from your computer"
50
+ msgstr "Seleziona un file da caricare dal tuo computer"
51
+
52
+ #: popup.php:52
53
+ msgid "Select media replacement type:"
54
+ msgstr "Seleziona il tipo di sostituzione:"
55
+
56
+ #: popup.php:54
57
+ msgid "Just replace the file"
58
+ msgstr "Sostituire semplicemente il file"
59
+
60
+ #: popup.php:55
61
+ msgid "Note: This option requires you to upload a file of the same type ("
62
+ msgstr "Nota: Questa opzione richiede il caricamento di un file dello stesso tipo ("
63
+
64
+ #: popup.php:55
65
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
66
+ msgstr ") di quello sostituito. Il nome dell'allegato rimarrà invariato ("
67
+
68
+ #: popup.php:55
69
+ msgid ") no matter what the file you upload is called."
70
+ msgstr ") indipendentemente dal nome del file caricato."
71
+
72
+ #: popup.php:57
73
+ msgid "Replace the file, use new file name and update all links"
74
+ msgstr "Sostituire il file, usare il nome del nuovo file ed aggiornare tutti i collegamenti"
75
+
76
+ #: popup.php:58
77
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
78
+ msgstr "Nota: Se selezioni questa opzione, il nome ed il tipo di file che stai per caricare sostituiranno quelli del file precedente. Tutti i collegamenti che puntavano al file precedente ("
79
+
80
+ #: popup.php:58
81
+ msgid ") will be updated to point to the new file name."
82
+ msgstr ") saranno aggiornati per puntare al nuovo file."
83
+
84
+ #: popup.php:60
85
+ msgid "Upload"
86
+ msgstr "Carica"
87
+
88
+ #: popup.php:60
89
+ msgid "Cancel"
90
+ msgstr "Annulla"
91
+
92
+ #: upload.php:35
93
+ msgid "File type does not meet security guidelines. Try another."
94
+ msgstr "Il tipo di file non rispetta le restrizioni di sicurezza. Riprova con un altro tipo."
95
+
languages/enable-media-replace-nl_NL.mo ADDED
Binary file
languages/enable-media-replace-nl_NL.po ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-10 20:53+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: WarmStal D!sign | Ben ter Stal <mail@warmstal.nl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: enable-media-replace.php:26
17
+ #: enable-media-replace.php:45
18
+ msgid "Replace media"
19
+ msgstr "Vervangen media"
20
+
21
+ #: enable-media-replace.php:45
22
+ msgid "Upload a new file"
23
+ msgstr "Uploaden nieuw bestand"
24
+
25
+ #: enable-media-replace.php:45
26
+ msgid "To replace the current file, click the link and upload a replacement."
27
+ msgstr "Klik om het bestaande bestand te vervangen door een nieuw te uploaden bestand."
28
+
29
+ #: popup.php:7
30
+ #: upload.php:10
31
+ msgid "You do not have permission to upload files."
32
+ msgstr "U heeft geen rechten om bestanden te uplaoden"
33
+
34
+ #: popup.php:23
35
+ msgid "Replace Media Upload"
36
+ msgstr "Replace Media Upload"
37
+
38
+ #: popup.php:34
39
+ msgid "NOTE: You are about to replace the media file"
40
+ msgstr "Opmerking: U staat op het punt het media bestand"
41
+
42
+ #: popup.php:34
43
+ msgid "There is no undo. Think about it!"
44
+ msgstr "Deze bewerking kan niet ongedaan worden gemaakt!"
45
+
46
+ #: popup.php:36
47
+ msgid "Choose a file to upload from your computer"
48
+ msgstr "Selecteer een bestand op de PC om te uploaden"
49
+
50
+ #: popup.php:40
51
+ msgid "Select media replacement type:"
52
+ msgstr "Selecteer de wijze van vervanging"
53
+
54
+ #: popup.php:42
55
+ msgid "Just replace the file"
56
+ msgstr "Vervang alleen het bestand"
57
+
58
+ #: popup.php:43
59
+ msgid "Note: This option requires you to upload a file of the same type ("
60
+ msgstr "Opmerking: voor deze optie moet u een bestand van hetzelfde type uploaden ("
61
+
62
+ #: popup.php:43
63
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
64
+ msgstr ") De naam in de media bibliotheek blijft hetzelfde ("
65
+
66
+ #: popup.php:43
67
+ msgid ") no matter what the file you upload is called."
68
+ msgstr ") onafhankelijk van de naam van het nieuwe bestand."
69
+
70
+ #: popup.php:45
71
+ msgid "Replace the file, use new file name and update all links"
72
+ msgstr "Vervang het bestand, gebruik de nieuwe naam en werk alle links bij."
73
+
74
+ #: popup.php:46
75
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
76
+ msgstr "Opmerking: bij deze keuze wordt het bestand volledig vervangen. Alle links naar het huidige bestand ("
77
+
78
+ #: popup.php:46
79
+ msgid ") will be updated to point to the new file name."
80
+ msgstr ") worden bijgewerkt naar het nieuwe bestand."
81
+
82
+ #: popup.php:48
83
+ msgid "Upload"
84
+ msgstr "Uploaden"
85
+
86
+ #: popup.php:48
87
+ msgid "Cancel"
88
+ msgstr "Annuleren"
89
+
languages/enable-media-replace-pt_BR.mo ADDED
Binary file
languages/enable-media-replace-pt_BR.po ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-13 14:57+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Roger <rogerhnn@hotmail.com>\n"
8
+ "Language-Team: Roger Nobrega <rogerhnn@hotmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Generator: Poedit 1.5.4\n"
15
+ "Language: Português - Brasil\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: enable-media-replace.php:40 enable-media-replace.php:68
20
+ msgid "Replace media"
21
+ msgstr "Substituir mídia"
22
+
23
+ #: enable-media-replace.php:68
24
+ msgid "Upload a new file"
25
+ msgstr "Enviar novo arquivo"
26
+
27
+ #: enable-media-replace.php:68
28
+ msgid "To replace the current file, click the link and upload a replacement."
29
+ msgstr ""
30
+ "Para subtituir o arquivo atual, clique no link e carregue um substituto"
31
+
32
+ #: popup.php:14 upload.php:21
33
+ msgid "You do not have permission to upload files."
34
+ msgstr "Você não tem permissões para enviar arquivos."
35
+
36
+ #: popup.php:30
37
+ msgid "Replace Media Upload"
38
+ msgstr "Enviar Mídia Substituta"
39
+
40
+ #: popup.php:41
41
+ msgid "NOTE: You are about to replace the media file"
42
+ msgstr "NOTA: Você irá substituir o arquivo de mídia"
43
+
44
+ #: popup.php:41
45
+ msgid "There is no undo. Think about it!"
46
+ msgstr "Não é possível cancelar esta ação."
47
+
48
+ #: popup.php:43
49
+ msgid "Choose a file to upload from your computer"
50
+ msgstr "Escolha um arquivo para enviar do seu computador"
51
+
52
+ #: popup.php:47
53
+ msgid "Select media replacement type:"
54
+ msgstr "Selecione o tipo de substituição"
55
+
56
+ #: popup.php:49
57
+ msgid "Just replace the file"
58
+ msgstr "Apenas substituir arquivo"
59
+
60
+ #: popup.php:50
61
+ msgid "Note: This option requires you to upload a file of the same type ("
62
+ msgstr "Nota: Esta opção requer o carregamento de um arquivo do mesmo tipo ("
63
+
64
+ #: popup.php:50
65
+ msgid ""
66
+ ") as the one you are replacing. The name of the attachment will stay the "
67
+ "same ("
68
+ msgstr ""
69
+ ") do que está sendo substituído. O nome do arquivo permanecerá o mesmo("
70
+
71
+ #: popup.php:50
72
+ msgid ") no matter what the file you upload is called."
73
+ msgstr "), independente do nome do arquivo enviado."
74
+
75
+ #: popup.php:52
76
+ msgid "Replace the file, use new file name and update all links"
77
+ msgstr ""
78
+ "Substituir o arquivo, usar o novo nome de arquivo, e atualizar todos os links"
79
+
80
+ #: popup.php:53
81
+ msgid ""
82
+ "Note: If you check this option, the name and type of the file you are about "
83
+ "to upload will replace the old file. All links pointing to the current file ("
84
+ msgstr ""
85
+ "Nota: Se selecionar esta opção, o nome e tipo do arquivo que você enviar irá "
86
+ "substituir os do arquivo antigo. Todos os links do arquivo atual ("
87
+
88
+ #: popup.php:53
89
+ msgid ") will be updated to point to the new file name."
90
+ msgstr ") serão atualizados para o novo arquivo."
91
+
92
+ #: popup.php:55
93
+ msgid "Upload"
94
+ msgstr "Enviar"
95
+
96
+ #: popup.php:55
97
+ msgid "Cancel"
98
+ msgstr "Cancelar"
languages/enable-media-replace-pt_PT.po ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-13 14:57+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Bruno Silva <bruno.b.silva@co.sapo.pt>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+
16
+ #: enable-media-replace.php:40
17
+ #: enable-media-replace.php:68
18
+ msgid "Replace media"
19
+ msgstr "Substituir media"
20
+
21
+ #: enable-media-replace.php:68
22
+ msgid "Upload a new file"
23
+ msgstr "Enviar novo ficheiro"
24
+
25
+ #: enable-media-replace.php:68
26
+ msgid "To replace the current file, click the link and upload a replacement."
27
+ msgstr "Para subtituir o ficheiro actual, clique no link e carregue um substituto"
28
+
29
+ #: popup.php:14
30
+ #: upload.php:21
31
+ msgid "You do not have permission to upload files."
32
+ msgstr "Não tem permissões para carregar ficheiros."
33
+
34
+ #: popup.php:30
35
+ msgid "Replace Media Upload"
36
+ msgstr "Carregar Substituição de Media"
37
+
38
+ #: popup.php:41
39
+ msgid "NOTE: You are about to replace the media file"
40
+ msgstr "NOTA: Está prestes a substituir o ficheiro de media"
41
+
42
+ #: popup.php:41
43
+ msgid "There is no undo. Think about it!"
44
+ msgstr "Não é possível cancelar esta ação."
45
+
46
+ #: popup.php:43
47
+ msgid "Choose a file to upload from your computer"
48
+ msgstr "Escolher um ficheiro para carregar a partir do computador"
49
+
50
+ #: popup.php:47
51
+ msgid "Select media replacement type:"
52
+ msgstr "Selecione o tipo de substituição"
53
+
54
+ #: popup.php:49
55
+ msgid "Just replace the file"
56
+ msgstr "Apenas substituir ficheiro"
57
+
58
+ #: popup.php:50
59
+ msgid "Note: This option requires you to upload a file of the same type ("
60
+ msgstr "Nota: Esta opção requer o carregamento de um ficheiro do mesmo tipo ("
61
+
62
+ #: popup.php:50
63
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
64
+ msgstr ") daquele a substituir. O nome do ficheiro permanecerá o mesmo("
65
+
66
+ #: popup.php:50
67
+ msgid ") no matter what the file you upload is called."
68
+ msgstr "), independentemente do nome do ficheiro carregado."
69
+
70
+ #: popup.php:52
71
+ msgid "Replace the file, use new file name and update all links"
72
+ msgstr "Substituir o ficheiro, usar o novo nome de ficheiro, e actualizar todos os links"
73
+
74
+ #: popup.php:53
75
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
76
+ msgstr "Nota: Se selecionar esta opção, o nome e tipo do ficheiro que está prestes a carregar irá substituir os do ficheiro antigo. Todos os links que referenciam o ficheiro actual ("
77
+
78
+ #: popup.php:53
79
+ msgid ") will be updated to point to the new file name."
80
+ msgstr ") serão actualizados de forma a referenciar o novo nome de ficheiro."
81
+
82
+ #: popup.php:55
83
+ msgid "Upload"
84
+ msgstr "Carregar"
85
+
86
+ #: popup.php:55
87
+ msgid "Cancel"
88
+ msgstr "Cancelar"
89
+
languages/enable-media-replace-ru_RU.mo ADDED
Binary file
languages/enable-media-replace-ru_RU.po ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-09-13 14:57+0100\n"
6
+ "PO-Revision-Date: 2013-01-18 14:58+0400\n"
7
+ "Last-Translator: Vladislav (me@dsigh.ru)\n"
8
+ "Language-Team: DigitalSigh\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: Russian\n"
15
+ "X-Poedit-Country: RUSSIAN FEDERATION\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11) ? 0 : ((n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20)) ? 1 : 2)\n"
19
+
20
+ #: enable-media-replace.php:40
21
+ #: enable-media-replace.php:68
22
+ msgid "Replace media"
23
+ msgstr "Заменить"
24
+
25
+ #: enable-media-replace.php:68
26
+ msgid "Upload a new file"
27
+ msgstr "Загрузить новый файл"
28
+
29
+ #: enable-media-replace.php:68
30
+ msgid "To replace the current file, click the link and upload a replacement."
31
+ msgstr "Для того, чтобы заменить текущий файл, нажмите на ссылку и загрузите замену."
32
+
33
+ #: popup.php:14
34
+ #: upload.php:21
35
+ msgid "You do not have permission to upload files."
36
+ msgstr "У вас нет прав для загрузки файлов."
37
+
38
+ #: popup.php:30
39
+ msgid "Replace Media Upload"
40
+ msgstr "Загрузка файла для замены"
41
+
42
+ #: popup.php:41
43
+ msgid "NOTE: You are about to replace the media file"
44
+ msgstr "ПРИМЕЧАНИЕ: Вы собираетесь заменить медиафайл"
45
+
46
+ #: popup.php:41
47
+ msgid "There is no undo. Think about it!"
48
+ msgstr "Данную операцию нельзя отменить. Учтите это!"
49
+
50
+ #: popup.php:43
51
+ msgid "Choose a file to upload from your computer"
52
+ msgstr "Выберите файл для загрузки с вашего компьютера:"
53
+
54
+ #: popup.php:47
55
+ msgid "Select media replacement type:"
56
+ msgstr "Выберите тип замены:"
57
+
58
+ #: popup.php:49
59
+ msgid "Just replace the file"
60
+ msgstr "Только заменить файл"
61
+
62
+ #: popup.php:50
63
+ msgid "Note: This option requires you to upload a file of the same type ("
64
+ msgstr "Этот вариант требуется, если нужно загрузить файл того же типа ("
65
+
66
+ #: popup.php:50
67
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
68
+ msgstr "), как оригинальный. Имя вложения останется тем же ("
69
+
70
+ #: popup.php:50
71
+ msgid ") no matter what the file you upload is called."
72
+ msgstr ") не зависимо от того, как называется загружаемый файл."
73
+
74
+ #: popup.php:52
75
+ msgid "Replace the file, use new file name and update all links"
76
+ msgstr "Заменить файл, использовать новое имя и обновить все ссылки"
77
+
78
+ #: popup.php:53
79
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
80
+ msgstr "Если выбрать этот вариант, то имя и тип файла, который вы собираетесь загрузить, заменят старые. Все ссылки, указывающие на текущий файл ("
81
+
82
+ #: popup.php:53
83
+ msgid ") will be updated to point to the new file name."
84
+ msgstr ") будут обновлены новыми."
85
+
86
+ #: popup.php:55
87
+ msgid "Upload"
88
+ msgstr "Загрузить"
89
+
90
+ #: popup.php:55
91
+ msgid "Cancel"
92
+ msgstr "Отмена"
93
+
94
+ #~ msgid "Replace media upload"
95
+ #~ msgstr "Загрузка файла для замены"
languages/enable-media-replace-sv_SE.mo ADDED
Binary file
languages/enable-media-replace-sv_SE.po ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-06-03 14:32+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Måns Jonasson <mans@thejonassons.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+
17
+ #: enable-media-replace.php:40 enable-media-replace.php:79
18
+ #: enable-media-replace.php:120
19
+ msgid "Replace media"
20
+ msgstr "Ersätt media"
21
+
22
+ #: enable-media-replace.php:79
23
+ msgid "Upload a new file"
24
+ msgstr "Ladda upp en ny fil"
25
+
26
+ #: enable-media-replace.php:79
27
+ msgid "To replace the current file, click the link and upload a replacement."
28
+ msgstr ""
29
+ "För att ersätta den nuvarande filen, klicka på länken och ladda upp en ny "
30
+ "fil."
31
+
32
+ #: enable-media-replace.php:168
33
+ msgid "Revised"
34
+ msgstr "Uppdaterad"
35
+
36
+ #: popup.php:14 upload.php:3
37
+ msgid "You do not have permission to upload files."
38
+ msgstr "Du har inte tillåtelse att ladda upp filer."
39
+
40
+ #: popup.php:30
41
+ msgid "Replace Media Upload"
42
+ msgstr "Ladda upp ny fil"
43
+
44
+ #: popup.php:46
45
+ msgid "NOTE: You are about to replace the media file"
46
+ msgstr "OBS: Du är på väg att ersätta filen"
47
+
48
+ #: popup.php:46
49
+ msgid "There is no undo. Think about it!"
50
+ msgstr "Det finns inget sätt att ångra. Tänk efter först!"
51
+
52
+ #: popup.php:48
53
+ msgid "Choose a file to upload from your computer"
54
+ msgstr "Välj en fil att ladda upp från din dator"
55
+
56
+ #: popup.php:52
57
+ msgid "Select media replacement type:"
58
+ msgstr "Välj ersättningsform:"
59
+
60
+ #: popup.php:54
61
+ msgid "Just replace the file"
62
+ msgstr "Ersätt bara filen"
63
+
64
+ #: popup.php:55
65
+ msgid "Note: This option requires you to upload a file of the same type ("
66
+ msgstr "Detta val kräver att du laddar upp en fil av exakt samma typ ("
67
+
68
+ #: popup.php:55
69
+ msgid ""
70
+ ") as the one you are replacing. The name of the attachment will stay the "
71
+ "same ("
72
+ msgstr ") som den du ersätter. Namnet på filen kommer att behållas ("
73
+
74
+ #: popup.php:55
75
+ msgid ") no matter what the file you upload is called."
76
+ msgstr ") oavsett vad filen du laddar upp heter på din dator."
77
+
78
+ #: popup.php:57
79
+ msgid "Replace the file, use new file name and update all links"
80
+ msgstr "Ersätt filen, använd det nya filnamnet och uppdatera alla länkar"
81
+
82
+ #: popup.php:58
83
+ msgid ""
84
+ "Note: If you check this option, the name and type of the file you are about "
85
+ "to upload will replace the old file. All links pointing to the current file ("
86
+ msgstr ""
87
+ "Om du klickar i den här rutan kommer den även namnet och typen på den nya "
88
+ "filen du laddar upp helt att ersätta den gamla. Alla länkar som pekar på den "
89
+ "gamla filen ("
90
+
91
+ #: popup.php:58
92
+ msgid ") will be updated to point to the new file name."
93
+ msgstr ") kommer att uppdateras så att de pekar på det nya filnamnet."
94
+
95
+ #: popup.php:60
96
+ msgid "Upload"
97
+ msgstr "Ladda upp"
98
+
99
+ #: popup.php:60
100
+ msgid "Cancel"
101
+ msgstr "Avbryt"
102
+
103
+ #: upload.php:33
104
+ msgid "File type does not meet security guidelines. Try another."
105
+ msgstr ""
106
+ "Den här filen är inte tillåten enligt WordPress säkerhetsinställningar. "
107
+
108
+ #~ msgid "Enable Media Replace"
109
+ #~ msgstr "Ladda upp ny fil"
110
+
111
+ #~ msgid ""
112
+ #~ "This plugin allows you to replace any uploaded media file by uploading a "
113
+ #~ "new one."
114
+ #~ msgstr ""
115
+ #~ "Detta plugin låter dig ersätta en fil i mediebiblioteket genom att ladda "
116
+ #~ "upp en ny."
117
+
118
+ #~ msgid "First, locate the uploaded file you want to replace, using the"
119
+ #~ msgstr "Hitta först den fil du vill ersätta genom att bläddra i "
120
+
121
+ #~ msgid "media library browser"
122
+ #~ msgstr "mediebiblioteket"
123
+
124
+ #~ msgid "Click the \"Edit\" link"
125
+ #~ msgstr "Tryck på \"Redigera\"-länken"
126
+
127
+ #~ msgid ""
128
+ #~ "Second, click the link \"Upload a new file\" and follow the instructions."
129
+ #~ msgstr "Tryck sen på länken \"Ladda upp ny fil\" och följ instruktionerna."
130
+
131
+ #~ msgid "Replace media upload"
132
+ #~ msgstr "Ladda upp ny fil"
languages/enable-media-replace-zh_CN.mo ADDED
Binary file
languages/enable-media-replace-zh_CN.po ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Enable Media Replace v2.6\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2012-09-18 07:29:17+0000\n"
7
+ "Last-Translator: Tunghsiao Liu <info@sparanoid.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Chinese\n"
14
+ "X-Poedit-Country: PEOPLE'S REPUBLIC OF CHINA\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: enable-media-replace.php:39
23
+ #: enable-media-replace.php:67
24
+ #@ enable-media-replace
25
+ msgid "Replace media"
26
+ msgstr "替换媒体"
27
+
28
+ #: enable-media-replace.php:67
29
+ #@ enable-media-replace
30
+ msgid "Upload a new file"
31
+ msgstr "上传新文件"
32
+
33
+ #: enable-media-replace.php:67
34
+ #@ enable-media-replace
35
+ msgid "To replace the current file, click the link and upload a replacement."
36
+ msgstr "想要替换当前文件,点击上述链接并上传新文件"
37
+
38
+ #: popup.php:14
39
+ #: upload.php:3
40
+ #@ enable-media-replace
41
+ #@ default
42
+ msgid "You do not have permission to upload files."
43
+ msgstr "您没有权限上传文件"
44
+
45
+ #: popup.php:30
46
+ #@ enable-media-replace
47
+ msgid "Replace Media Upload"
48
+ msgstr "替换媒体文件"
49
+
50
+ #: popup.php:46
51
+ #@ enable-media-replace
52
+ msgid "NOTE: You are about to replace the media file"
53
+ msgstr "注意:您将要替换媒体文件"
54
+
55
+ #: popup.php:46
56
+ #@ enable-media-replace
57
+ msgid "There is no undo. Think about it!"
58
+ msgstr "此操作无法撤销。"
59
+
60
+ #: popup.php:48
61
+ #@ enable-media-replace
62
+ msgid "Choose a file to upload from your computer"
63
+ msgstr "从计算机中选择文件上传"
64
+
65
+ #: popup.php:52
66
+ #@ enable-media-replace
67
+ msgid "Select media replacement type:"
68
+ msgstr "选择媒体替换类型"
69
+
70
+ #: popup.php:54
71
+ #@ enable-media-replace
72
+ msgid "Just replace the file"
73
+ msgstr "仅替换文件"
74
+
75
+ #: popup.php:55
76
+ #@ enable-media-replace
77
+ msgid "Note: This option requires you to upload a file of the same type ("
78
+ msgstr "说明:此选项要求您上传与之前文件相同的文件类型("
79
+
80
+ #: popup.php:55
81
+ #@ enable-media-replace
82
+ msgid ") as the one you are replacing. The name of the attachment will stay the same ("
83
+ msgstr "),替换后,无论您上传的文件名是什么,上传后的媒体文件名称与地址都会保持不变("
84
+
85
+ #: popup.php:55
86
+ #@ enable-media-replace
87
+ msgid ") no matter what the file you upload is called."
88
+ msgstr ")。"
89
+
90
+ #: popup.php:57
91
+ #@ enable-media-replace
92
+ msgid "Replace the file, use new file name and update all links"
93
+ msgstr "替换文件,使用新文件名并更新所有链接"
94
+
95
+ #: popup.php:58
96
+ #@ enable-media-replace
97
+ msgid "Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file ("
98
+ msgstr "说明:使用此选项,将会使用新文件的文件名及文件类型,所有包含文件名("
99
+
100
+ #: popup.php:58
101
+ #@ enable-media-replace
102
+ msgid ") will be updated to point to the new file name."
103
+ msgstr ")的链接也将会被替换成新文件名。"
104
+
105
+ #: popup.php:60
106
+ #@ enable-media-replace
107
+ msgid "Upload"
108
+ msgstr "上传"
109
+
110
+ #: popup.php:60
111
+ #@ enable-media-replace
112
+ msgid "Cancel"
113
+ msgstr "取消"
114
+
115
+ #: upload.php:33
116
+ #@ default
117
+ msgid "File type does not meet security guidelines. Try another."
118
+ msgstr "文件类型不符合安全规范,请尝试其他文件。"
119
+
languages/enable-media-replace.mo ADDED
Binary file
languages/enable-media-replace.po ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: enable-media-replace\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-06-03 14:32+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Måns Jonasson <mans@thejonassons.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Generator: Poedit 1.5.5\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+
17
+ #: enable-media-replace.php:40 enable-media-replace.php:79
18
+ #: enable-media-replace.php:120
19
+ msgid "Replace media"
20
+ msgstr ""
21
+
22
+ #: enable-media-replace.php:79
23
+ msgid "Upload a new file"
24
+ msgstr ""
25
+
26
+ #: enable-media-replace.php:79
27
+ msgid "To replace the current file, click the link and upload a replacement."
28
+ msgstr ""
29
+
30
+ #: enable-media-replace.php:168
31
+ msgid "Revised"
32
+ msgstr ""
33
+
34
+ #: popup.php:14 upload.php:3
35
+ msgid "You do not have permission to upload files."
36
+ msgstr ""
37
+
38
+ #: popup.php:30
39
+ msgid "Replace Media Upload"
40
+ msgstr ""
41
+
42
+ #: popup.php:46
43
+ msgid "NOTE: You are about to replace the media file"
44
+ msgstr ""
45
+
46
+ #: popup.php:46
47
+ msgid "There is no undo. Think about it!"
48
+ msgstr ""
49
+
50
+ #: popup.php:48
51
+ msgid "Choose a file to upload from your computer"
52
+ msgstr ""
53
+
54
+ #: popup.php:52
55
+ msgid "Select media replacement type:"
56
+ msgstr ""
57
+
58
+ #: popup.php:54
59
+ msgid "Just replace the file"
60
+ msgstr ""
61
+
62
+ #: popup.php:55
63
+ msgid "Note: This option requires you to upload a file of the same type ("
64
+ msgstr ""
65
+
66
+ #: popup.php:55
67
+ msgid ""
68
+ ") as the one you are replacing. The name of the attachment will stay the "
69
+ "same ("
70
+ msgstr ""
71
+
72
+ #: popup.php:55
73
+ msgid ") no matter what the file you upload is called."
74
+ msgstr ""
75
+
76
+ #: popup.php:57
77
+ msgid "Replace the file, use new file name and update all links"
78
+ msgstr ""
79
+
80
+ #: popup.php:58
81
+ msgid ""
82
+ "Note: If you check this option, the name and type of the file you are about "
83
+ "to upload will replace the old file. All links pointing to the current file ("
84
+ msgstr ""
85
+
86
+ #: popup.php:58
87
+ msgid ") will be updated to point to the new file name."
88
+ msgstr ""
89
+
90
+ #: popup.php:60
91
+ msgid "Upload"
92
+ msgstr ""
93
+
94
+ #: popup.php:60
95
+ msgid "Cancel"
96
+ msgstr ""
97
+
98
+ #: upload.php:33
99
+ msgid "File type does not meet security guidelines. Try another."
100
+ msgstr ""
popup.php CHANGED
@@ -2,8 +2,8 @@
2
  /**
3
  * Uploadscreen for selecting and uploading new media file
4
  *
5
- * @author M�ns Jonasson <http://www.mansjonasson.se>
6
- * @copyright M�ns Jonasson 13 sep 2010
7
  * @version $Revision: 2303 $ | $Date: 2010-09-13 11:12:35 +0200 (ma, 13 sep 2010) $
8
  * @package wordpress
9
  * @subpackage enable-media-replace
@@ -49,16 +49,22 @@ $current_filename = substr($current_filename, (strrpos($current_filename, "/") +
49
 
50
  <input type="file" name="userfile" />
51
 
 
 
 
52
  <p><?php echo __("Select media replacement type:", "enable-media-replace"); ?></p>
53
 
54
  <label for="replace_type_1"><input CHECKED id="replace_type_1" type="radio" name="replace_type" value="replace"> <?php echo __("Just replace the file", "enable-media-replace"); ?></label>
55
  <p class="howto"><?php echo __("Note: This option requires you to upload a file of the same type (", "enable-media-replace"); ?><?php echo $current_filetype; ?><?php echo __(") as the one you are replacing. The name of the attachment will stay the same (", "enable-media-replace"); ?><?php echo $current_filename; ?><?php echo __(") no matter what the file you upload is called.", "enable-media-replace"); ?></p>
56
 
 
57
  <label for="replace_type_2"><input id="replace_type_2" type="radio" name="replace_type" value="replace_and_search"> <?php echo __("Replace the file, use new file name and update all links", "enable-media-replace"); ?></label>
58
  <p class="howto"><?php echo __("Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file (", "enable-media-replace"); ?><?php echo $current_filename; ?><?php echo __(") will be updated to point to the new file name.", "enable-media-replace"); ?></p>
59
- <p class="howto"><?php echo __("Please note that if you upload a new image, only embeds/links of the original size image will be replaced in your posts."); ?></p>
60
-
 
 
 
61
  <input type="submit" class="button" value="<?php echo __("Upload", "enable-media-replace"); ?>" /> <a href="#" onclick="history.back();"><?php echo __("Cancel", "enable-media-replace"); ?></a>
62
-
63
  </form>
64
  </div>
2
  /**
3
  * Uploadscreen for selecting and uploading new media file
4
  *
5
+ * @author M�ns Jonasson <http://www.mansjonasson.se>
6
+ * @copyright M�ns Jonasson 13 sep 2010
7
  * @version $Revision: 2303 $ | $Date: 2010-09-13 11:12:35 +0200 (ma, 13 sep 2010) $
8
  * @package wordpress
9
  * @subpackage enable-media-replace
49
 
50
  <input type="file" name="userfile" />
51
 
52
+ <?php do_action( 'emr_before_replace_type_options' ); ?>
53
+
54
+ <?php if ( apply_filters( 'emr_display_replace_type_options', true ) ) : ?>
55
  <p><?php echo __("Select media replacement type:", "enable-media-replace"); ?></p>
56
 
57
  <label for="replace_type_1"><input CHECKED id="replace_type_1" type="radio" name="replace_type" value="replace"> <?php echo __("Just replace the file", "enable-media-replace"); ?></label>
58
  <p class="howto"><?php echo __("Note: This option requires you to upload a file of the same type (", "enable-media-replace"); ?><?php echo $current_filetype; ?><?php echo __(") as the one you are replacing. The name of the attachment will stay the same (", "enable-media-replace"); ?><?php echo $current_filename; ?><?php echo __(") no matter what the file you upload is called.", "enable-media-replace"); ?></p>
59
 
60
+ <?php if ( apply_filters( 'emr_enable_replace_and_search', true ) ) : ?>
61
  <label for="replace_type_2"><input id="replace_type_2" type="radio" name="replace_type" value="replace_and_search"> <?php echo __("Replace the file, use new file name and update all links", "enable-media-replace"); ?></label>
62
  <p class="howto"><?php echo __("Note: If you check this option, the name and type of the file you are about to upload will replace the old file. All links pointing to the current file (", "enable-media-replace"); ?><?php echo $current_filename; ?><?php echo __(") will be updated to point to the new file name.", "enable-media-replace"); ?></p>
63
+ <p class="howto"><?php echo __("Please note that if you upload a new image, only embeds/links of the original size image will be replaced in your posts.", "enable-media-replace"); ?></p>
64
+ <?php endif; ?>
65
+ <?php else : ?>
66
+ <input type="hidden" name="replace_type" value="replace" />
67
+ <?php endif; ?>
68
  <input type="submit" class="button" value="<?php echo __("Upload", "enable-media-replace"); ?>" /> <a href="#" onclick="history.back();"><?php echo __("Cancel", "enable-media-replace"); ?></a>
 
69
  </form>
70
  </div>
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: mungobbq
3
  Tags: admin, attachment, media, files
4
  Requires at least: 3.0
5
- Tested up to: 3.9.1
6
  Stable tag: trunk
7
 
8
  Enables replacing attachment files by simply uploading a new file in the media library edit view.
@@ -37,6 +37,14 @@ If you want more control over the format used to display the time, you can use t
37
 
38
  == Changelog ==
39
 
 
 
 
 
 
 
 
 
40
  = 2.9.6 =
41
  * Added fix by Grant K Norwood to address a possible security problem in SQL statements. Thanks Grant!
42
  * Created GitHub repo for this plugin, please feel free to contribute at github.com/mansj/enable-media-replace
2
  Contributors: mungobbq
3
  Tags: admin, attachment, media, files
4
  Requires at least: 3.0
5
+ Tested up to: 4.0
6
  Stable tag: trunk
7
 
8
  Enables replacing attachment files by simply uploading a new file in the media library edit view.
37
 
38
  == Changelog ==
39
 
40
+ = 3.0 =
41
+ * Updated for WordPress 4.0
42
+ * Now inheriting permissions of the replaced files, [Thank you Fiwad](https://github.com/fiwad)
43
+
44
+ = 2.9.7RC1 =
45
+ * Moved localization files into own directory. [Thank you Michael](https://github.com/michael-cannon)
46
+ * Moved screensots into own directory. [Thank you Michael](https://github.com/michael-cannon)
47
+
48
  = 2.9.6 =
49
  * Added fix by Grant K Norwood to address a possible security problem in SQL statements. Thanks Grant!
50
  * Created GitHub repo for this plugin, please feel free to contribute at github.com/mansj/enable-media-replace
upload.php CHANGED
@@ -89,6 +89,9 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
89
  $new_filesize = $_FILES["userfile"]["size"];
90
  $new_filetype = $filedata["type"];
91
 
 
 
 
92
  if ($replace_type == "replace") {
93
  // Drop-in replace and we don't even care if you uploaded something that is the wrong file-type.
94
  // That's your own fault, because we warned you!
@@ -98,17 +101,15 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
98
  // Move new file to old location/name
99
  move_uploaded_file($_FILES["userfile"]["tmp_name"], $current_file);
100
 
101
- // Chmod new file to 644
102
- chmod($current_file, 0644);
103
 
104
  // Make thumb and/or update metadata
105
  wp_update_attachment_metadata( (int) $_POST["ID"], wp_generate_attachment_metadata( (int) $_POST["ID"], $current_file ) );
106
 
107
  // Trigger possible updates on CDN and other plugins
108
  update_attached_file( (int) $_POST["ID"], $current_file);
109
- }
110
-
111
- else {
112
  // Replace file, replace file name, update meta data, replace links pointing to old file name
113
 
114
  emr_delete_current_files($current_file);
@@ -120,8 +121,8 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
120
  $new_file = $current_path . "/" . $new_filename;
121
  move_uploaded_file($_FILES["userfile"]["tmp_name"], $new_file);
122
 
123
- // Chmod new file to 644
124
- chmod($new_file, 0644);
125
 
126
  $new_filetitle = preg_replace('/\.[^.]+$/', '', basename($new_file));
127
  $new_filetitle = apply_filters( 'enable_media_replace_title', $new_filetitle ); // Thanks Jonas Lundman (http://wordpress.org/support/topic/add-filter-hook-suggestion-to)
@@ -200,4 +201,4 @@ if (FORCE_SSL_ADMIN) {
200
 
201
  //save redirection
202
  wp_redirect($returnurl);
203
- ?>
89
  $new_filesize = $_FILES["userfile"]["size"];
90
  $new_filetype = $filedata["type"];
91
 
92
+ // save original file permissions
93
+ $original_file_perms = fileperms($current_file) & 0777;
94
+
95
  if ($replace_type == "replace") {
96
  // Drop-in replace and we don't even care if you uploaded something that is the wrong file-type.
97
  // That's your own fault, because we warned you!
101
  // Move new file to old location/name
102
  move_uploaded_file($_FILES["userfile"]["tmp_name"], $current_file);
103
 
104
+ // Chmod new file to original file permissions
105
+ chmod($current_file, $original_file_perms);
106
 
107
  // Make thumb and/or update metadata
108
  wp_update_attachment_metadata( (int) $_POST["ID"], wp_generate_attachment_metadata( (int) $_POST["ID"], $current_file ) );
109
 
110
  // Trigger possible updates on CDN and other plugins
111
  update_attached_file( (int) $_POST["ID"], $current_file);
112
+ } elseif ( 'replace_and_search' == $replace_type && apply_filters( 'emr_enable_replace_and_search', true ) ) {
 
 
113
  // Replace file, replace file name, update meta data, replace links pointing to old file name
114
 
115
  emr_delete_current_files($current_file);
121
  $new_file = $current_path . "/" . $new_filename;
122
  move_uploaded_file($_FILES["userfile"]["tmp_name"], $new_file);
123
 
124
+ // Chmod new file to original file permissions
125
+ chmod($current_file, $original_file_perms);
126
 
127
  $new_filetitle = preg_replace('/\.[^.]+$/', '', basename($new_file));
128
  $new_filetitle = apply_filters( 'enable_media_replace_title', $new_filetitle ); // Thanks Jonas Lundman (http://wordpress.org/support/topic/add-filter-hook-suggestion-to)
201
 
202
  //save redirection
203
  wp_redirect($returnurl);
204
+ ?>