aboutsummaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorAndrew V. Samoilov <andrew@src.gnome.org>2000-11-07 20:45:11 +0800
committerAndrew V. Samoilov <andrew@src.gnome.org>2000-11-07 20:45:11 +0800
commit18d3c7ec1145a879daff8f396af2eb905924983d (patch)
treec3926c78fe68e41219f9526d1a96580056783c92 /po
parentdfd91470e439b2a0240eccc433b5d088242c33e8 (diff)
downloadgsoc2013-evolution-18d3c7ec1145a879daff8f396af2eb905924983d.tar.gz
gsoc2013-evolution-18d3c7ec1145a879daff8f396af2eb905924983d.tar.zst
gsoc2013-evolution-18d3c7ec1145a879daff8f396af2eb905924983d.zip
ru.po: messages spelled
svn path=/trunk/; revision=6479
Diffstat (limited to 'po')
-rw-r--r--po/ru.po20
1 files changed, 10 insertions, 10 deletions
diff --git a/po/ru.po b/po/ru.po
index d505b663b3..a41162ce7d 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -1516,7 +1516,7 @@ msgstr "Значение процента должно быть между 0 и 100, включительно"
#: calendar/gui/calendar-model.c:1063
msgid "The priority must be between 1 and 9, inclusive"
-msgstr "Приоритет должен быть между 1 и 9, вкючительно"
+msgstr "Приоритет должен быть между 1 и 9, включительно"
#: calendar/gui/control-factory.c:126
msgid "The URI that the calendar will display"
@@ -2562,7 +2562,7 @@ msgstr "десятый"
#: calendar/gui/getdate.y:452
msgid "eleventh"
-msgstr "одинадцатый"
+msgstr "одиннадцатый"
#: calendar/gui/getdate.y:453
msgid "twelfth"
@@ -2943,7 +2943,7 @@ msgstr "Не удалось проверить почтовый файл %s: %s"
#: camel/camel-movemail.c:133 camel/camel-movemail.c:180
#, c-format
msgid "Could not create lock file for %s: %s"
-msgstr "Не удалось создать фай блокировки для %s: %s"
+msgstr "Не удалось создать файл блокировки для %s: %s"
#: camel/camel-movemail.c:143
#, c-format
@@ -2964,7 +2964,7 @@ msgstr "Невозможно проверить файл блокировки для %s: %s"
#, c-format
msgid "Timed out trying to get lock file on %s. Try again later."
msgstr ""
-"Превышение времени при попытке заплокировать файл %s. Попробуйте еще раз "
+"Превышение времени при попытке заблокировать файл %s. Попробуйте еще раз "
"позже."
#: camel/camel-movemail.c:240
@@ -2975,7 +2975,7 @@ msgstr "Ошибка при чтении почтового файла: %s"
#: camel/camel-movemail.c:251
#, c-format
msgid "Error writing mail temp file: %s"
-msgstr "Ошибка сохранения временного почтовог файла: %s"
+msgstr "Ошибка сохранения временного почтового файла: %s"
#: camel/camel-movemail.c:269
#, c-format
@@ -3426,7 +3426,7 @@ msgid ""
"claim to support it."
msgstr ""
"Подключение к POP серверу будет производиться с использованием шифрованного "
-"пароля по протоколу APOP. Это может работать не для всех пользователея даже "
+"пароля по протоколу APOP. Это может работать не для всех пользователей даже "
"на серверах, которые якобы поддерживают это."
#: camel/providers/pop3/camel-pop3-store.c:172
@@ -3539,7 +3539,7 @@ msgstr "Доставка почты через программу sendmail"
#: camel/providers/smtp/camel-smtp-provider.c:36
msgid "For delivering mail by connecting to a remote mailhub using SMTP."
msgstr ""
-"Для доставки почты с помощью подключеия к удаленному почтовому узлу по "
+"Для доставки почты с помощью подключения к удаленному почтовому узлу по "
"протоколу SMTP."
#: camel/providers/vee/camel-vee-provider.c:30
@@ -4552,7 +4552,7 @@ msgstr "Соединение было успешным!"
#: mail/mail-config-gui.c:2325
#, c-format
msgid "Querying authorization capabilities of \"%s\""
-msgstr "Запрашивание возможностей авторизации от \"%s\""
+msgstr "Запрос возможностей авторизации от \"%s\""
#: mail/mail-config-gui.c:2327
#, c-format
@@ -4843,7 +4843,7 @@ msgstr "Не удалось создать канал к GPG/PGP: %s"
#: mail/mail-crypto.c:599
msgid "No GPG/PGP program available."
-msgstr "Не доступна программа GPG/PGP."
+msgstr "Недоступна программа GPG/PGP."
#: mail/mail-display.c:66
msgid "Overwrite file?"
@@ -5789,7 +5789,7 @@ msgstr ""
"изощренного пользователя Интернет, насколько возможно. И мы устали.\n"
"Но мы еще не готовы -- пока нет.\n"
"\n"
-"Когда вы исследуюте \"Эволюцию\", пожалуйста учитывайте, что большая часть\n"
+"Когда вы исследуете \"Эволюцию\", пожалуйста учитывайте, что большая часть\n"
"нашей работы была направлена на создание мощного движка, который будет\n"
"управлять всей системой, а не пользовательского интерфейса. Предстоит еще\n"
"много работы, мы с любовью и вниманием будем развивать пользовательский\n"
llaume.desmottes@collabora.co.uk> 2009-06-24 22:26:49 +0800 committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> 2009-06-25 00:32:26 +0800 empathy-time: remove trailing tabs' href='/~lantw44/cgit/gsoc2013-empathy/commit/libempathy/empathy-time.c?id=12a1643c10b0d9375ef41cb9493d08c46c5b96ef'>12a1643c1
1f391b975
40c0d1ba5





1f391b975

40c0d1ba5











d00adf45e
58505161b
40c0d1ba5

















58505161b
40c0d1ba5



d00adf45e

40c0d1ba5















d00adf45e

40c0d1ba5













c40737394










c40737394

















d563a37f9




c40737394






771929ecd
c40737394

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169


                                                                           
                                         
  



                                                                     
  
                                                                  

                                                                    
                                                  
  


                                                                             








                                              
                       
 
                         
 
                                         
 
      
                               




                           
                                           
 
                        
                       
 
                             





                                  

                                          











                                                                     
      
                                     

















                                                            
                                                 



                                                                                   

                                                















                                                                                     

                                                  













                                                                










                                             

















                                                                          




                                                                        






                                                                         
                                                     

         
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Copyright (C) 2003-2007 Imendio AB
 * Copyright (C) 2007-2010 Collabora Ltd.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Authors: Richard Hult <richard@imendio.com>
 */

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n.h>

#include "empathy-time.h"

/* Note: EmpathyTime is always in UTC. */

time_t
empathy_time_get_current (void)
{
    return time (NULL);
}

time_t
empathy_time_get_local_time (struct tm *tm)
{
    const gchar *tz;
    time_t       t;

    tz = g_getenv ("TZ");
    g_setenv ("TZ", "", TRUE);

    tzset ();

    t = mktime (tm);

    if (tz) {
        g_setenv ("TZ", tz, TRUE);
    } else {
        g_unsetenv ("TZ");
    }

    tzset ();

    return t;
}

/* The format is: "20021209T23:51:30" and is in UTC. 0 is returned on
 * failure. The alternative format "20021209" is also accepted.
 */
time_t
empathy_time_parse (const gchar *str)
{
    struct tm tm;
    gint      year, month;
    gint      n_parsed;

    memset (&tm, 0, sizeof (struct tm));

    n_parsed = sscanf (str, "%4d%2d%2dT%2d:%2d:%2d",
            &year, &month, &tm.tm_mday, &tm.tm_hour,
               &tm.tm_min, &tm.tm_sec);
    if (n_parsed != 3 && n_parsed != 6) {
        return 0;
    }

    tm.tm_year = year - 1900;
    tm.tm_mon = month - 1;
    tm.tm_isdst = -1;

    return empathy_time_get_local_time (&tm);
}

/* Converts the UTC timestamp to a string, also in UTC. Returns NULL on failure. */
gchar *
empathy_time_to_string_utc (time_t       t,
                const gchar *format)
{
    gchar      stamp[128];
    struct tm *tm;

    g_return_val_if_fail (format != NULL, NULL);

    tm = gmtime (&t);
    if (strftime (stamp, sizeof (stamp), format, tm) == 0) {
        return NULL;
    }

    return g_strdup (stamp);
}

/* Converts the UTC timestamp to a string, in local time. Returns NULL on failure. */
gchar *
empathy_time_to_string_local (time_t       t,
                  const gchar *format)
{
    gchar      stamp[128];
    struct tm *tm;

    g_return_val_if_fail (format != NULL, NULL);

    tm = localtime (&t);
    if (strftime (stamp, sizeof (stamp), format, tm) == 0) {
        return NULL;
    }

    return g_strdup (stamp);
}

gchar  *
empathy_time_to_string_relative (time_t then)
{
    time_t now;
    gint   seconds;

    now = time (NULL);
    seconds = now - then;

    if (seconds > 0) {
        if (seconds < 60) {
            return g_strdup_printf (ngettext ("%d second ago",
                "%d seconds ago", seconds), seconds);
        }
        else if (seconds < (60 * 60)) {
            seconds /= 60;
            return g_strdup_printf (ngettext ("%d minute ago",
                "%d minutes ago", seconds), seconds);
        }
        else if (seconds < (60 * 60 * 24)) {
            seconds /= 60 * 60;
            return g_strdup_printf (ngettext ("%d hour ago",
                "%d hours ago", seconds), seconds);
        }
        else if (seconds < (60 * 60 * 24 * 7)) {
            seconds /= 60 * 60 * 24;
            return g_strdup_printf (ngettext ("%d day ago",
                "%d days ago", seconds), seconds);
        }
        else if (seconds < (60 * 60 * 24 * 30)) {
            seconds /= 60 * 60 * 24 * 7;
            return g_strdup_printf (ngettext ("%d week ago",
                "%d weeks ago", seconds), seconds);
        }
        else {
            seconds /= 60 * 60 * 24 * 30;
            return g_strdup_printf (ngettext ("%d month ago",
                "%d months ago", seconds), seconds);
        }
    }
    else {
        return g_strdup (_("in the future"));
    }
}