/[smecontribs]/rpms/smeserver-subversion/contribs7/smeserver-subversion-1.5-prevent-empty-description.patch
ViewVC logotype

Contents of /rpms/smeserver-subversion/contribs7/smeserver-subversion-1.5-prevent-empty-description.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jun 13 20:20:37 2012 UTC (12 years, 5 months ago) by snetram
Branch: MAIN
CVS Tags: smeserver-subversion-1_4-50_el4_sme, smeserver-subversion-1_4-51_el4_sme, HEAD
* Wed Jun 13 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.5-2.sme
- Prevent empty description [SME: 6987]
- Apply latest locale patch

1 diff -up smeserver-subversion-1.5/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/subversion.validate-description smeserver-subversion-1.5/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/subversion
2 --- smeserver-subversion-1.5/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/subversion.validate-description 2012-05-26 17:01:01.000000000 +0200
3 +++ smeserver-subversion-1.5/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/subversion 2012-06-13 21:44:13.000000000 +0200
4 @@ -228,6 +228,14 @@ characters.</trans>
5 </trans>
6 </entry>
7 <entry>
8 + <base>DESCRIPTION_SHOULD_NOT_BE_EMPTY</base>
9 + <trans>The repository description should not be empty.
10 + Repository descriptions must start with a lower case letter and contain
11 + only lower case letters, numbers, and hyphens.
12 + </trans>
13 + </entry>
14 +
15 + <entry>
16 <base>MAX_REPOSITORY_NAME_LENGTH_ERROR</base>
17 <trans>
18 The repository name "{$name}" is too long. The maximum is
19 diff -up smeserver-subversion-1.5/root/etc/e-smith/web/functions/subversion.validate-description smeserver-subversion-1.5/root/etc/e-smith/web/functions/subversion
20 diff -up smeserver-subversion-1.5/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm.validate-description smeserver-subversion-1.5/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm
21 --- smeserver-subversion-1.5/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm.validate-description 2012-05-26 17:01:01.000000000 +0200
22 +++ smeserver-subversion-1.5/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/subversion.pm 2012-06-13 21:40:55.000000000 +0200
23 @@ -983,6 +983,10 @@ sub validate_description {
24 return $self->localise('DESCRIPTION_HAS_INVALID_CHARS',
25 {repoDescription => $description});
26 }
27 + if ($description =~ /^\s*$/)
28 + {
29 + return $self->localise('DESCRIPTION_SHOULD_NOT_BE_EMPTY');
30 + }
31 return "OK";
32
33 }
34 diff -up smeserver-subversion-1.5/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/subversion.prevent-empty-description smeserver-subversion-1.5/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/subversion
35 --- smeserver-subversion-1.5/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/subversion.prevent-empty-description 2012-05-26 17:01:01.000000000 +0200
36 +++ smeserver-subversion-1.5/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/subversion 2012-06-13 22:09:36.000000000 +0200
37 @@ -157,6 +157,10 @@
38 <trans>De Subversion bewaarplaats beschrijving "{$acctName}" bevat ongeldige tekens. Bewaarplaats beschrijvingen moeten starten met een kleine letter en moeten alleen kleine letters, cijfers and koppeltekens bevatten.</trans>
39 </entry>
40 <entry>
41 + <base>DESCRIPTION_SHOULD_NOT_BE_EMPTY</base>
42 + <trans>De Subversion bewaarplaats beschrijving mag niet leeg zijn. Bewaarplaats beschrijvingen moeten starten met een kleine letter en moeten alleen kleine letters, cijfers and koppeltekens bevatten.</trans>
43 + </entry>
44 + <entry>
45 <base>MAX_REPOSITORY_NAME_LENGTH_ERROR</base>
46 <trans>De bewaarplaats naam "{$name}" is te lang. De maximale lengte is {$maxIbayNameLength} tekens.</trans>
47 </entry>

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed