# gettext catalog for about/media web page(s) # Copyright (C) 2014 - 2014 Mageia # This file is distributed under the same license as # the content of the corresponding web page(s). # # Generated by extract2gettext.php # Domain: about/media # # include translation strings from: # en/about/media/index.php # # Translators: # Florin Cătălin RUSSEN , 2014 msgid "" msgstr "" "Project-Id-Version: Mageia\n" "Report-Msgid-Bugs-To: mageia-i18n@mageia.org\n" "POT-Creation-Date: 2018-01-24 16:52:04+0000\n" "PO-Revision-Date: 2014-05-06 14:30+0000\n" "Last-Translator: Florin Cătălin RUSSEN \n" "Language-Team: Romanian (http://www.transifex.com/projects/p/mageia/language/ro/)\n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" #: "/web/en/about/media/index.php +12" msgid "Mageia media files" msgstr "Fișiere multimedia Mageia" #: "/web/en/about/media/index.php +21" msgid "Media files" msgstr "Fișiere multimedia" #: "/web/en/about/media/index.php +25" msgid "Official Logo" msgstr "Sigla oficială" #: "/web/en/about/media/index.php +28" msgid "Mageia 2013" msgstr "Mageia 2013" #: "/web/en/about/media/index.php +29" msgid "Mageia 2013 dark" msgstr "Mageia 2013 întunecat" #: "/web/en/about/media/index.php +30" msgid "Mageia 2013 alpha" msgstr "Mageia 2013 alfa" #: "/web/en/about/media/index.php +39" msgid "%sPNG or %sSVG" msgstr "%sPNG sau %sSVG" #: "/web/en/about/media/index.php +47" msgid "The font used for the logo can be downloaded here." msgstr "Fontul utilizat pentru siglă poate fi descărcat aici." #: "/web/en/about/media/index.php +51" msgid "Previous Logo" msgstr "Sigla precedentă" #: "/web/en/about/media/index.php +53" msgid "Mageia 2011 logo" msgstr "Sigla Mageia 2011" #: "/web/en/about/media/index.php +56" #, fuzzy msgid "Mageia CD/DVD covers without version" msgstr "Coperți CD/DVD Mageia 3" #: "/web/en/about/media/index.php +57" #, fuzzy msgid "Mageia CD/DVD" msgstr "Mageia 1 CD/DVD" #: "/web/en/about/media/index.php +63" msgid "Created by zalappy." msgstr "" #: "/web/en/about/media/index.php +63" msgid "Source is available %shere%s." msgstr "" #: "/web/en/about/media/index.php +64" msgid "Licensed under CC-By-SA." msgstr "" #: "/web/en/about/media/index.php +68" #, fuzzy msgid "Mageia 6 CD/DVD covers" msgstr "Coperți CD/DVD Mageia 3" #: "/web/en/about/media/index.php +69" msgid "Mageia 6 Classic-Installation 64bit DVD" msgstr "" #: "/web/en/about/media/index.php +70" msgid "Mageia 6 Classic-Installation 32bit DVD" msgstr "" #: "/web/en/about/media/index.php +71" #, fuzzy msgid "Mageia 6 LiveDVD KDE Plasma 64bit" msgstr "Mageia 3 LiveDVD KDE, 64 de biți" #: "/web/en/about/media/index.php +72" #, fuzzy msgid "Mageia 6 LiveDVD Gnome 64bit" msgstr "Mageia 3 LiveDVD GNOME, 64 de biți" #: "/web/en/about/media/index.php +73" #, fuzzy msgid "Mageia 6 LiveDVD Xfce 64bit" msgstr "Mageia 3 DVD, 64 de biți" #: "/web/en/about/media/index.php +74" #, fuzzy msgid "Mageia 6 LiveDVD Xfce 32bit" msgstr "Mageia 3 DVD, 32 de biți" #: "/web/en/about/media/index.php +75" msgid "Created by Macxi." msgstr "" #: "/web/en/about/media/index.php +76" #, fuzzy msgid "Mageia 6 CD/DVD" msgstr "Mageia 1 CD/DVD" #: "/web/en/about/media/index.php +84" msgid "Mageia 3 CD/DVD covers" msgstr "Coperți CD/DVD Mageia 3" #: "/web/en/about/media/index.php +85" msgid "Mageia 3 plain CD/DVD" msgstr "Mageia 3 CD/DVD simplu" #: "/web/en/about/media/index.php +86" msgid "Mageia 3 CD" msgstr "Mageia 3 CD" #: "/web/en/about/media/index.php +87" msgid "Mageia 3 DVD" msgstr "Mageia 3 DVD" #: "/web/en/about/media/index.php +88" msgid "Mageia 3 dualarch CD" msgstr "Mageia 3 CD arhitectură duală" #: "/web/en/about/media/index.php +89" msgid "Mageia 3 32bit DVD" msgstr "Mageia 3 DVD, 32 de biți" #: "/web/en/about/media/index.php +90" msgid "Mageia 3 64bit DVD" msgstr "Mageia 3 DVD, 64 de biți" #: "/web/en/about/media/index.php +91" msgid "Mageia 3 32bit LiveCD Gnome" msgstr "Mageia 3 LiveCD GNOME, 32 de biți" #: "/web/en/about/media/index.php +92" msgid "Mageia 3 32bit LiveCD KDE" msgstr "Mageia 3 LiveCD KDE, 32 de biți" #: "/web/en/about/media/index.php +93" msgid "Mageia 3 32bit LiveDVD Gnome" msgstr "Mageia 3 LiveDVD GNOME, 32 de biți" #: "/web/en/about/media/index.php +94" msgid "Mageia 3 32bit LiveDVD KDE" msgstr "Mageia 3 LiveDVD KDE, 32 de biți" #: "/web/en/about/media/index.php +95" msgid "Mageia 3 64bit LiveDVD Gnome" msgstr "Mageia 3 LiveDVD GNOME, 64 de biți" #: "/web/en/about/media/index.php +96" msgid "Mageia 3 64bit LiveDVD KDE" msgstr "Mageia 3 LiveDVD KDE, 64 de biți" #: "/web/en/about/media/index.php +99" msgid "Mageia 3 CD/DVD cover dedicated to Eugeni with his black silhuete" msgstr "Copertă CD/DVD Mageia 3 dedicată lui Eugeni cu silueta sa în negru" #: "/web/en/about/media/index.php +100" msgid "Mageia 3 CD/DVD cover with watermark dedicated to Eugeni" msgstr "Copertă CD/DVD Mageia 3 cu filigran dedicat lui Eugeni" #: "/web/en/about/media/index.php +105" msgid "Mageia 1 CD/DVD covers" msgstr "Coperți CD/DVD Mageia 1" #: "/web/en/about/media/index.php +106" msgid "Mageia 1 CD/DVD" msgstr "Mageia 1 CD/DVD" #: "/web/en/about/media/index.php +109" #, fuzzy msgid "Licensed under CC-By-SA by Julie Guennegues." msgstr "Licențiată sub CC-By-SA de către Julie Guennegues." #: "/web/en/about/media/index.php +113" msgid "Please consult atelier team if you have questions/concerns about using these files." msgstr "Consultați echipa atelier dacă aveți întrebări/preocupări în legătură cu folosirea acestor fișiere." 89'>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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
<?php
/**
*
* @package notifications
* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

class ucp_notifications
{
	public $u_action;

	public function main($id, $mode)
	{
		global $config, $template, $user, $request, $phpbb_container;
		global $phpbb_root_path, $phpEx;

		add_form_key('ucp_notification');

		$start = $request->variable('start', 0);
		$form_time = min($request->variable('form_time', 0), time());

		$phpbb_notifications = $phpbb_container->get('notification_manager');

		switch ($mode)
		{
			case 'notification_options':
				$subscriptions = $phpbb_notifications->get_global_subscriptions(false);

				// Add/remove subscriptions
				if ($request->is_set_post('submit'))
				{
					if (!check_form_key('ucp_notification'))
					{
						trigger_error('FORM_INVALID');
					}

					$notification_methods = $phpbb_notifications->get_subscription_methods();

					foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
					{
						foreach($subscription_types as $type => $data)
						{
							foreach($notification_methods as $method => $method_data)
							{
								if ($request->is_set_post($type . '_' . $method_data['id']) && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type])))
								{
									$phpbb_notifications->add_subscription($type, 0, $method_data['id']);
								}
								else if (!$request->is_set_post($type . '_' . $method_data['id']) && isset($subscriptions[$type]) && in_array($method_data['id'], $subscriptions[$type]))
								{
									$phpbb_notifications->delete_subscription($type, 0, $method_data['id']);
								}
							}

							if ($request->is_set_post($type . '_notification') && !isset($subscriptions[$type]))
							{
								$phpbb_notifications->add_subscription($type);
							}
							else if (!$request->is_set_post($type . '_notification') && isset($subscriptions[$type]))
							{
								$phpbb_notifications->delete_subscription($type);
							}
						}
					}

					meta_refresh(3, $this->u_action);
					$message = $user->lang['PREFERENCES_UPDATED'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
					trigger_error($message);
				}

				$this->output_notification_methods('notification_methods', $phpbb_notifications, $template, $user);

				$this->output_notification_types($subscriptions, 'notification_types', $phpbb_notifications, $template, $user);

				$this->tpl_name = 'ucp_notifications';
				$this->page_title = 'UCP_NOTIFICATION_OPTIONS';
			break;

			case 'notification_list':
			default:
				// Mark all items read
				if ($request->variable('mark', '') == 'all' && (confirm_box(true) || check_link_hash($request->variable('token', ''), 'mark_all_notifications_read')))
				{
					if (confirm_box(true))
					{
						$phpbb_notifications->mark_notifications_read(false, false, $user->data['user_id'], $form_time);

						meta_refresh(3, $this->u_action);
						$message = $user->lang['NOTIFICATIONS_MARK_ALL_READ_SUCCESS'] . '<br /><br />' . sprintf($user->lang['RETURN_UCP'], '<a href="' . $this->u_action . '">', '</a>');
						trigger_error($message);
					}
					else
					{
						confirm_box(false, 'NOTIFICATIONS_MARK_ALL_READ', build_hidden_fields(array(
							'mark'		=> 'all',
							'form_time'	=> $form_time,
						)));
					}
				}

				// Mark specific notifications read
				if ($request->is_set_post('submit'))
				{
					if (!check_form_key('ucp_notification'))
					{
						trigger_error('FORM_INVALID');
					}

					$mark_read = $request->variable('mark', array(0));

					if (!empty($mark_read))
					{
						$phpbb_notifications->mark_notifications_read_by_id($mark_read, $form_time);
					}
				}

				$notifications = $phpbb_notifications->load_notifications(array(
					'start'			=> $start,
					'limit'			=> $config['topics_per_page'],
					'count_total'	=> true,
				));

				foreach ($notifications['notifications'] as $notification)
				{
					$template->assign_block_vars('notification_list', $notification->prepare_for_display());
				}

				$base_url = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=ucp_notifications&amp;mode=notification_list");
				phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $notifications['total_count'], $config['topics_per_page'], $start);

				$template->assign_vars(array(
					'PAGE_NUMBER'	=> phpbb_on_page($template, $user, $base_url, $notifications['total_count'], $config['topics_per_page'], $start),
					'TOTAL_COUNT'	=> $user->lang('NOTIFICATIONS_COUNT', $notifications['total_count']),
					'U_MARK_ALL'	=> $base_url . '&amp;mark=all&amp;token=' . generate_link_hash('mark_all_notifications_read'),
				));

				$this->tpl_name = 'ucp_notifications';
				$this->page_title = 'UCP_NOTIFICATION_LIST';
			break;
		}

		$template->assign_vars(array(
			'TITLE'				=> $user->lang($this->page_title),
			'TITLE_EXPLAIN'		=> $user->lang($this->page_title . '_EXPLAIN'),

			'MODE'				=> $mode,

			'FORM_TIME'			=> time(),
		));
	}

	/**
	* Output all the notification types to the template
	*
	* @param string $block
	* @param phpbb_notification_manager $phpbb_notifications
	* @param phpbb_template $template
	* @param phpbb_user $user
	*/
	public function output_notification_types($subscriptions, $block = 'notification_types', phpbb_notification_manager $phpbb_notifications, phpbb_template $template, phpbb_user $user)
	{
		$notification_methods = $phpbb_notifications->get_subscription_methods();

		foreach($phpbb_notifications->get_subscription_types() as $group => $subscription_types)
		{
			$template->assign_block_vars($block, array(
				'GROUP_NAME'	=> $user->lang($group),
			));

			foreach($subscription_types as $type => $data)
			{
				$template->assign_block_vars($block, array(
					'TYPE'				=> $type,

					'NAME'				=> $user->lang($data['lang']),
					'EXPLAIN'			=> (isset($user->lang[$data['lang'] . '_EXPLAIN'])) ? $user->lang($data['lang'] . '_EXPLAIN') : '',

					'SUBSCRIBED'		=> (isset($subscriptions[$type])) ? true : false,
				));

				foreach($notification_methods as $method => $method_data)
				{
					$template->assign_block_vars($block . '.notification_methods', array(
						'METHOD'			=> $method_data['id'],

						'NAME'				=> $user->lang($method_data['lang']),

						'SUBSCRIBED'		=> (isset($subscriptions[$type]) && in_array($method_data['id'], $subscriptions[$type])) ? true : false,
					));
				}
			}
		}

		$template->assign_vars(array(
			strtoupper($block) . '_COLS' => sizeof($notification_methods) + 2,
		));
	}

	/**
	* Output all the notification methods to the template
	*
	* @param string $block
	* @param phpbb_notification_manager $phpbb_notifications
	* @param phpbb_template $template
	* @param phpbb_user $user
	*/
	public function output_notification_methods($block = 'notification_methods', phpbb_notification_manager $phpbb_notifications, phpbb_template $template, phpbb_user $user)
	{
		$notification_methods = $phpbb_notifications->get_subscription_methods();

		foreach($notification_methods as $method => $method_data)
		{
			$template->assign_block_vars($block, array(
				'METHOD'			=> $method_data['id'],

				'NAME'				=> $user->lang($method_data['lang']),
			));
		}
	}
}